1
0
mirror of https://github.com/speed47/spectre-meltdown-checker synced 2024-12-23 04:43:37 +01:00

add couple missing elses

This commit is contained in:
Stéphane Lesimple 2018-01-07 18:49:15 +01:00
parent bffda8b3e7
commit 64eb1d005c

View File

@ -1,7 +1,7 @@
#! /bin/sh #! /bin/sh
# Spectre & Meltdown checker # Spectre & Meltdown checker
# Stephane Lesimple # Stephane Lesimple
VERSION=0.06 VERSION=0.07
pstatus() pstatus()
{ {
@ -178,6 +178,8 @@ elif [ -e /boot/config-$(uname -r) ]; then
else else
pstatus red NO pstatus red NO
fi fi
else
pstatus yellow UNKNOWN "couldn't read your kernel configuration"
fi fi
/bin/echo -ne "> \033[46m\033[30mSTATUS:\033[0m " /bin/echo -ne "> \033[46m\033[30mSTATUS:\033[0m "
@ -217,7 +219,7 @@ elif [ -e /boot/System.map-$(uname -r) ]; then
pstatus red NO pstatus red NO
fi fi
else else
pstatus yellow UNKNOWN pstatus yellow UNKNOWN "couldn't read your kernel configuration"
fi fi
/bin/echo -n "* PTI enabled and active: " /bin/echo -n "* PTI enabled and active: "