mirror of
https://github.com/speed47/spectre-meltdown-checker.git
synced 2024-12-21 18:48:03 +01:00
fix(cosmetic): tiny msg fixes
This commit is contained in:
parent
d55bafde19
commit
3b0ec998b1
@ -198,7 +198,7 @@ is_cpu_vulnerable()
|
|||||||
variant2=''
|
variant2=''
|
||||||
variant3=''
|
variant3=''
|
||||||
# we also set a friendly name for the CPU to be used in the script if needed
|
# we also set a friendly name for the CPU to be used in the script if needed
|
||||||
cpu_friendly_name=$(grep '^model name' /proc/cpuinfo | cut -d: -f2- | head -1)
|
cpu_friendly_name=$(grep '^model name' /proc/cpuinfo | cut -d: -f2- | head -1 | sed -e 's/^ *//')
|
||||||
|
|
||||||
if grep -q GenuineIntel /proc/cpuinfo; then
|
if grep -q GenuineIntel /proc/cpuinfo; then
|
||||||
# Intel
|
# Intel
|
||||||
@ -661,7 +661,8 @@ if [ "$opt_live" = 1 ]; then
|
|||||||
_warn "To run it as root, you can try the following command: sudo $0"
|
_warn "To run it as root, you can try the following command: sudo $0"
|
||||||
_warn
|
_warn
|
||||||
fi
|
fi
|
||||||
_info "Checking for vulnerabilities against running kernel \033[35m"$(uname -s) $(uname -r) $(uname -v) $(uname -m)"\033[0m"
|
_info "Checking for vulnerabilities on current system"
|
||||||
|
_info "Kernel is \033[35m"$(uname -s) $(uname -r) $(uname -v) $(uname -m)"\033[0m"
|
||||||
# call is_cpu_vulnerable to fill the cpu_friendly_name var
|
# call is_cpu_vulnerable to fill the cpu_friendly_name var
|
||||||
is_cpu_vulnerable 1
|
is_cpu_vulnerable 1
|
||||||
_info "CPU is \033[35m$cpu_friendly_name\033[0m"
|
_info "CPU is \033[35m$cpu_friendly_name\033[0m"
|
||||||
|
Loading…
Reference in New Issue
Block a user