double-quote variable

This commit is contained in:
Greg Gauthier 2022-12-25 10:23:41 +00:00
parent 6f4562fff0
commit f57233aaae

View File

@ -5,7 +5,7 @@ if [[ -z "$1" ]]; then
exit 1
fi
file=$(basename ${1})
file=$(basename "${1}")
# The assumption is all images are for the blog
if [[ "$1" =~ .*\.(gif|jpg|png) ]]; then