From 11d1a422cabe4921340dd00e33b3b28ef0072e7b Mon Sep 17 00:00:00 2001 From: Christian Mahnke Date: Sat, 30 Dec 2023 13:42:57 +0100 Subject: [PATCH] Try to fix space in file names --- scripts/svgo.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/svgo.sh b/scripts/svgo.sh index d2a44b4ce9..89f931147e 100755 --- a/scripts/svgo.sh +++ b/scripts/svgo.sh @@ -4,10 +4,10 @@ IMAGES=$(find content -name '*.svg') for IMAGE in $IMAGES do - IMAGE_PREFIX=$(basename $IMAGE .svg) + IMAGE_PREFIX=$(basename "$IMAGE" .svg) TMP_FILE=${IMAGE_PREFIX}.tmp - echo "Processing $IMAGE..." + echo "Processing '$IMAGE'..." yarn run svgo --config ./config/svgo.config.js -i "$IMAGE" -o "$TMP_FILE" --multipass rm "$IMAGE" mv "$TMP_FILE" "$IMAGE"