1
0
mirror of https://github.com/speed47/spectre-meltdown-checker synced 2024-11-19 04:22:22 +01:00

fixed file read test

This commit is contained in:
Matt Cowan 2018-01-10 15:17:14 -05:00
parent a658de2f01
commit af3de2a862

View File

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