Merge pull request #38 from lurch/patch-1
Don't allow a directory to be selected
This commit is contained in:
commit
e7857ff47c
|
@ -19,7 +19,7 @@ img="$1"
|
||||||
if [[ -z "$img" ]]; then
|
if [[ -z "$img" ]]; then
|
||||||
usage
|
usage
|
||||||
fi
|
fi
|
||||||
if [[ ! -e "$img" ]]; then
|
if [[ ! -f "$img" ]]; then
|
||||||
echo "ERROR: $img is not a file..."
|
echo "ERROR: $img is not a file..."
|
||||||
exit -2
|
exit -2
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue