fix(cosmetic): tiny msg fixes

This commit is contained in:
Stéphane Lesimple 2018-01-23 20:25:24 +01:00
parent d55bafde19
commit 3b0ec998b1
1 changed files with 5 additions and 4 deletions

View File

@ -198,7 +198,7 @@ is_cpu_vulnerable()
variant2=''
variant3=''
# 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
# 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
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
is_cpu_vulnerable 1
_info "CPU is \033[35m$cpu_friendly_name\033[0m"