Fix status cpu detection on Linux

This commit is contained in:
Andrea Mistrali 2021-10-29 09:34:28 +02:00
parent 9dcf5a473b
commit 48634fc7a8
No known key found for this signature in database
GPG Key ID: 6FB0A77F6D5DA9B2
2 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ echo
if [ $KERNEL = "Darwin" ]; then if [ $KERNEL = "Darwin" ]; then
cpu_type=$(sysctl -n machdep.cpu.brand_string) cpu_type=$(sysctl -n machdep.cpu.brand_string)
elif [ $KERNEL = "Linux" ]; then elif [ $KERNEL = "Linux" ]; then
cpu_type=$(cat /proc/cpuinfo|grep "model name:"|cut -d: -f2|uniq) cpu_type=$(cat /proc/cpuinfo|grep "model name"|cut -d: -f2|uniq)
fi fi
print -P "$FX[bold]Kernel:$FX[reset] $KERNEL" print -P "$FX[bold]Kernel:$FX[reset] $KERNEL"

Binary file not shown.