diff --git a/tools/create_box.sh b/tools/create_box.sh index 78ceaf9..9f35409 100755 --- a/tools/create_box.sh +++ b/tools/create_box.sh @@ -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