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"