aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStéphane Lesimple <speed47_github@speed47.net>2018-01-31 12:13:50 +0100
committerStéphane Lesimple <speed47_github@speed47.net>2018-01-31 12:13:50 +0100
commitb738ac4bd7560680f6fb18ecf20940f564924f57 (patch)
treec57767c53b27f986668a94b3e84867ed5d72d956
parent799ce3eb30dfc2557d0b4c6ae19cc59f15fb25da (diff)
downloadspectre-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-xspectre-meltdown-checker.sh1
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