require only read for create image

This commit is contained in:
dima
2015-05-18 09:30:29 +02:00
parent 98e4b3b0be
commit fa004ab251

View File

@@ -60,7 +60,7 @@ TMP_IMG="$TMP_DIR/box.img"
mkdir -p "$TMP_DIR"
[[ ! -w "$IMG" ]] && error "'$IMG': Permission denied"
[[ ! -r "$IMG" ]] && error "'$IMG': Permission denied"
# We move / copy (when the image has master) the image to the tempdir
# ensure that it's moved back / removed again