Shellcheck

This commit is contained in:
Kroese 2023-04-17 03:17:26 +02:00 committed by GitHub
parent 58e87cbcd9
commit a5a8266175

View File

@ -12,7 +12,8 @@ snore()
function checkNMI {
local nmi=$(awk '/NMI/ {for (i=2; i<=NF; i++) if ($i ~ /^[0-9]+$/) {sum+=$i}} END {print sum}' /proc/interrupts)
local nmi
nmi=$(awk '/NMI/ {for (i=2; i<=NF; i++) if ($i ~ /^[0-9]+$/) {sum+=$i}} END {print sum}' /proc/interrupts)
if [ "$nmi" != "" ] && [ "$nmi" -ne "0" ]; then