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
This commit is contained in:
Stéphane Lesimple 2018-01-31 12:13:50 +01:00
parent 799ce3eb30
commit b738ac4bd7
1 changed files with 1 additions and 0 deletions

View File

@ -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