double-quote variable
This commit is contained in:
parent
6f4562fff0
commit
f57233aaae
@ -5,7 +5,7 @@ if [[ -z "$1" ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
file=$(basename ${1})
|
file=$(basename "${1}")
|
||||||
|
|
||||||
# The assumption is all images are for the blog
|
# The assumption is all images are for the blog
|
||||||
if [[ "$1" =~ .*\.(gif|jpg|png) ]]; then
|
if [[ "$1" =~ .*\.(gif|jpg|png) ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user