From af3de2a86243cc20a969befd0878c36c12363e3c Mon Sep 17 00:00:00 2001 From: Matt Cowan Date: Wed, 10 Jan 2018 15:17:14 -0500 Subject: [PATCH] fixed file read test --- spectre-meltdown-checker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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