fix(linux): resolve regression in check_cpu_flag()

This commit is contained in:
Martin Wimpress 2024-05-14 19:12:57 +01:00 committed by Martin Wimpress
parent 79a8f474f7
commit c194bad2d4
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ function check_cpu_flag() {
return 1
fi
else
HOST_CPU_FLAG="${1},,"
HOST_CPU_FLAG="${1}"
if lscpu | grep -o "^Flags\b.*: .*\b${HOST_CPU_FLAG}\b" > /dev/null; then
return 0
else