diff options
author | Stéphane Lesimple <speed47_github@speed47.net> | 2018-01-31 12:13:50 +0100 |
---|---|---|
committer | Stéphane Lesimple <speed47_github@speed47.net> | 2018-01-31 12:13:50 +0100 |
commit | b738ac4bd7560680f6fb18ecf20940f564924f57 (patch) | |
tree | c57767c53b27f986668a94b3e84867ed5d72d956 | |
parent | 799ce3eb30dfc2557d0b4c6ae19cc59f15fb25da (diff) | |
download | spectre-meltdown-checker-b738ac4bd7560680f6fb18ecf20940f564924f57.tar.lz spectre-meltdown-checker-b738ac4bd7560680f6fb18ecf20940f564924f57.tar.xz spectre-meltdown-checker-b738ac4bd7560680f6fb18ecf20940f564924f57.zip |
fix: regression introduced by previous commit
449: ./spectre-meltdown-checker.sh: 3: parameter not set
This happened only on blacklisted microcodes, fixed by
adding set +u before the return
-rwxr-xr-x | spectre-meltdown-checker.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spectre-meltdown-checker.sh b/spectre-meltdown-checker.sh index 6c438c4..63e137d 100755 --- a/spectre-meltdown-checker.sh +++ b/spectre-meltdown-checker.sh @@ -700,6 +700,7 @@ is_ucode_blacklisted() if [ "$cpu_model" = "$model" ] && [ "$cpu_stepping" = "$stepping" ] && echo "$cpu_ucode" | grep -qi "^$ucode$"; then _debug "is_ucode_blacklisted: we have a match! ($cpu_model/$cpu_stepping/$cpu_ucode)" bad_ucode_found="Intel CPU Family 6 Model $cpu_model Stepping $cpu_stepping with microcode $cpu_ucode" + set +u return 0 fi done |