made PR two lines shorter :)

This commit is contained in:
Andrew Titmuss 2016-08-14 14:09:28 +10:00
parent 8d2db93545
commit 53d2cf6661
No known key found for this signature in database
GPG Key ID: 8AF42975C787E0B2
1 changed files with 1 additions and 4 deletions

View File

@ -83,10 +83,7 @@ getmodel() {
esac
;;
"Mac OS X")
model="$(sysctl hw.model)"
model="${model//hw.model: /}"
;;
"Mac OS X") model="$(sysctl -n hw.model)" ;;
esac
}