From 38611a7af23461619011923a7fdeecbb8c7ccffe Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 27 Dec 2023 03:18:03 +0100 Subject: [PATCH] fix: Host CPU (#499) --- src/cpu.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cpu.sh b/src/cpu.sh index 0c30faa..5376c06 100644 --- a/src/cpu.sh +++ b/src/cpu.sh @@ -53,9 +53,9 @@ if [ -z "$HOST_CPU" ]; then HOST_CPU=$(lscpu | grep 'Model name' | cut -f 2 -d ":" | awk '{$1=$1}1' | sed 's# @.*##g' | sed s/"(R)"//g | sed 's/[^[:alnum:] ]\+/ /g' | sed 's/ */ /g') fi -if [ -n "$HOST_CPU" ]; then - HOST_CPU="${HOST_CPU%%,*},," -else +HOST_CPU="${HOST_CPU%%,*},," + +if [ -z "$HOST_CPU" ]; then HOST_CPU="QEMU, Virtual CPU," if [ "$ARCH" == "amd64" ]; then HOST_CPU="$HOST_CPU X86_64"