From 2010d1132851dfebe3493b097b36468fc69cd08d Mon Sep 17 00:00:00 2001 From: Andrew Titmuss Date: Sun, 16 Oct 2016 00:45:27 +1100 Subject: [PATCH] shorten if statement for retina check --- neofetch | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/neofetch b/neofetch index b24d5fe8..3112bdb5 100755 --- a/neofetch +++ b/neofetch @@ -1326,9 +1326,8 @@ getresolution() { scale_factor="$(/usr/libexec/PlistBuddy -c "Print DisplayAnyUserSets:0:0:Resolution" /Library/Preferences/com.apple.windowserver.plist)" - if [ "${scale_factor%.*}" == "2" ]; then + [ "${scale_factor%.*}" == "2" ] && \ resolution="${resolution// @/@2x @}" - fi if [ "$refresh_rate" == "off" ]; then resolution="${resolution// @ [0-9][0-9]Hz}"