From b738ac4bd7560680f6fb18ecf20940f564924f57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Wed, 31 Jan 2018 12:13:50 +0100 Subject: [PATCH] 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 --- spectre-meltdown-checker.sh | 1 + 1 file changed, 1 insertion(+) 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