remove superfluous space from test line 315

Extra space was causing non-existent variable to be tested resulting in 'YES' if running in live mode and IBRS compiled in
This commit is contained in:
angus-p 2018-01-09 03:47:25 +00:00 committed by GitHub
parent 949f316f89
commit cc0b325383
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -312,7 +312,7 @@ if [ "$opt_live" = 1 ]; then
ibrs_enabled=$(cat /sys/kernel/debug/x86/ibrs_enabled 2>/dev/null)
fi
fi
if [ "$ibrs_supported " != 1 -a -n "$opt_map" ]; then
if [ "$ibrs_supported" != 1 -a -n "$opt_map" ]; then
if grep -q spec_ctrl "$opt_map"; then
pstatus green YES
ibrs_supported=1