fixed printf call in error and warning

This commit is contained in:
Lucas Frérot 2025-01-04 14:52:59 +01:00
parent 76d492ccae
commit 62ade94f0f
No known key found for this signature in database
GPG Key ID: 03B54A50E3FBA7E8
1 changed files with 2 additions and 2 deletions

View File

@ -48,13 +48,13 @@ readonly MANDATORY_FILES=("README.md"
# Print error and exit
error() {
printf "${RED}error${NC}: %s\\n" "$@" 1>&2
printf "${RED}error${NC}: %b\\n" "$@" 1>&2
exit 1
}
# Print warning
warning() {
printf "${ORANGE}warning${NC}: %s\\n" "$@" 1>&2
printf "${ORANGE}warning${NC}: %b\\n" "$@" 1>&2
}
# Print info