Merge pull request #38 from lurch/patch-1

Don't allow a directory to be selected
This commit is contained in:
Drew Bonasera 2018-01-21 17:58:56 -05:00 committed by GitHub
commit e7857ff47c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ img="$1"
if [[ -z "$img" ]]; then
usage
fi
if [[ ! -e "$img" ]]; then
if [[ ! -f "$img" ]]; then
echo "ERROR: $img is not a file..."
exit -2
fi