From 1e79365a6751af18d1d6dfaddba2e7a386ce5010 Mon Sep 17 00:00:00 2001 From: Nicola Belluti Date: Wed, 29 Oct 2025 12:30:00 +0100 Subject: [PATCH] Fixed echo for error messages --- favicon/generate_favicons.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/favicon/generate_favicons.sh b/favicon/generate_favicons.sh index aecd6c0..f7deb9e 100755 --- a/favicon/generate_favicons.sh +++ b/favicon/generate_favicons.sh @@ -42,9 +42,9 @@ ICO_SIZES=(16 32 48) # ============================= Pre-flight checks ============================== -[[ -f "${SRC_SVG}" ]] || { echo "\033[1;31mError: Source SVG not found: ${SRC_SVG}\033[0m" >&2; exit 1; } -command -v magick >/dev/null || { echo "\033[1;31mError: ImageMagick (magick) not found\033[0m" >&2; exit 1; } -command -v xmlstarlet >/dev/null || { echo "\033[1;31mError: xmlstarlet required for SVG cropping\033[0m" >&2; exit 1; } +[[ -f "${SRC_SVG}" ]] || { echo -e "\033[1;31mError: Source SVG not found: ${SRC_SVG}\033[0m" >&2; exit 1; } +command -v magick >/dev/null || { echo -e "\033[1;31mError: ImageMagick (magick) not found\033[0m" >&2; exit 1; } +command -v xmlstarlet >/dev/null || { echo -e "\033[1;31mError: xmlstarlet required for SVG cropping\033[0m" >&2; exit 1; } # ================================= Functions ==================================