From 29b7fd589e07f4a9b6c42ac9c9b87c50251ac2a0 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 6 Nov 2016 20:34:51 +1100 Subject: [PATCH] Misc: Fix uname being run 3 times on iOS --- neofetch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/neofetch b/neofetch index b5bc5580..0246a9be 100755 --- a/neofetch +++ b/neofetch @@ -62,7 +62,7 @@ getmodel() { "Mac OS X") model="$(sysctl -n hw.model)" ;; "iPhone OS") - case "${ios_model:-$(uname -m)}" in + case "${ios_model:="$(uname -m)"}" in "iPad1,1") model="iPad" ;; "iPad2,"[1-4]) model="iPad2" ;; "iPad3,"[1-3]) model="iPad3" ;; @@ -772,7 +772,7 @@ getcpu() { ;; "iPhone OS") - case "${ios_model:-$(uname -m)}" in + case "${ios_model:="$(uname -m)"}" in "iPhone1,"[1-2] | "iPod1,1") cpu="Samsung S5L8900 (1) @ 412MHz" ;; "iPhone2,1") cpu="Samsung S5PC100 (1) @ 600MHz" ;; "iPhone3,"[1-3] | "iPod4,1") cpu="Apple A4 (1) @ 800MHz" ;; @@ -994,7 +994,7 @@ getgpu() { ;; "iPhone OS") - case "${ios_model:-"$(uname -m)"}" in + case "${ios_model:="$(uname -m)"}" in "iPhone1,"[1-2]) gpu="PowerVR MBX Lite 3D" ;; "iPhone5,"[1-4]) gpu="PowerVR SGX543MP3" ;; "iPhone8,"[1-4]) gpu="PowerVR GT7600" ;;