Model (Linux): Use cat to fix issues

This commit is contained in:
Dylan Araps 2016-08-19 11:25:17 +10:00
parent 4b4b0437d9
commit 065b0d21a0

View file

@ -41,7 +41,7 @@ getos() {
getmodel() { getmodel() {
case "$os" in case "$os" in
"Linux") "Linux")
model="$(< /sys/devices/virtual/dmi/id/product_{name,version} 2>/dev/null)" model="$(cat /sys/devices/virtual/dmi/id/product_{name,version} 2>/dev/null)"
model="${model/To Be Filled*}" model="${model/To Be Filled*}"
;; ;;