Merge pull request #51 from cowanml/file_read_check_fixup

fixed file read test
This commit is contained in:
Stéphane Lesimple 2018-01-10 21:39:09 +01:00 committed by GitHub
commit 49fdc6c449
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ parse_opt_file()
show_header
echo "$0: error: $option_value is not a file" >&2
exit 1
elif [ ! -e "$option_value" ]; then
elif [ ! -r "$option_value" ]; then
show_header
echo "$0: error: couldn't read $option_value (are you root?)" >&2
exit 1