diff options
author | Matt Cowan <cowan@bnl.gov> | 2018-01-10 15:17:14 -0500 |
---|---|---|
committer | Matt Cowan <cowan@bnl.gov> | 2018-01-10 15:17:14 -0500 |
commit | af3de2a86243cc20a969befd0878c36c12363e3c (patch) | |
tree | 340429e861cb881c2197d92ab4bc655a99a17b51 | |
parent | a658de2f011d1a35c9492f19353ee4f4aaf3300f (diff) | |
download | spectre-meltdown-checker-af3de2a86243cc20a969befd0878c36c12363e3c.tar.lz spectre-meltdown-checker-af3de2a86243cc20a969befd0878c36c12363e3c.tar.xz spectre-meltdown-checker-af3de2a86243cc20a969befd0878c36c12363e3c.zip |
fixed file read test
-rwxr-xr-x | spectre-meltdown-checker.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spectre-meltdown-checker.sh b/spectre-meltdown-checker.sh index d7673a4..dd72c3e 100755 --- a/spectre-meltdown-checker.sh +++ b/spectre-meltdown-checker.sh @@ -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 |