Properly quote variable

This commit is contained in:
a1346054
2022-08-08 22:40:39 +00:00
parent 37261dc180
commit b5e3f156e3

View File

@@ -67,7 +67,7 @@ mkdir -p "$TMP_DIR"
[[ ! -r "$IMG" ]] && error "'$IMG': Permission denied" [[ ! -r "$IMG" ]] && error "'$IMG': Permission denied"
if [ -n "$3" ] && [ -r "$3" ]; then if [ -n "$3" ] && [ -r "$3" ]; then
VAGRANTFILE_ADD="$(cat $3)" VAGRANTFILE_ADD="$(cat "$3")"
fi fi
# We move / copy (when the image has master) the image to the tempdir # We move / copy (when the image has master) the image to the tempdir