Skip to content

Commit

Permalink
Try to fix space in file names
Browse files Browse the repository at this point in the history
  • Loading branch information
cmahnke committed Dec 30, 2023
1 parent 493cf60 commit 11d1a42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/svgo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 11d1a42

Please sign in to comment.