optimize-svg: Clarify that you need to install svgo globally

Otherwise if you follow the command as previously printed, it will not show in PATH and
also pollute the source directory with npm package files.
This commit is contained in:
Joshua Goins 2024-11-07 21:43:16 +00:00
parent 8fc25ee8a8
commit 4cc62a5dea

View File

@ -2,7 +2,7 @@
if ! command -v svgo >/dev/null
then
echo "Please install svgo: npm install svgo"
echo "Please install svgo: npm install -g svgo"
exit 1
fi
# regarding convertStyleToAttrs, see: https://github.com/svg/svgo/issues/489