mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-24 04:22:32 +00:00
Model: Remove useless use of cat
This commit is contained in:
3
neofetch
3
neofetch
@@ -43,7 +43,8 @@ getmodel() {
|
||||
"Linux")
|
||||
if [ -f /sys/devices/virtual/dmi/id/product_name ] ||\
|
||||
[ -f /sys/devices/virtual/dmi/id/product_version ]; then
|
||||
model="$(cat /sys/devices/virtual/dmi/id/product_{name,version} 2>/dev/null)"
|
||||
model="$(< /sys/devices/virtual/dmi/id/product_name)"
|
||||
model+=" $(< /sys/devices/virtual/dmi/id/product_version)"
|
||||
model="${model/To Be Filled*}"
|
||||
|
||||
elif [ -f /sys/firmware/devicetree/base/model ]; then
|
||||
|
||||
Reference in New Issue
Block a user