From 95706b101d6eb42d19bae5eccd861b5e5cbd3d84 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 24 Jun 2016 11:48:18 +1000 Subject: [PATCH] Fix awk typo --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 9f88159a..597e419b 100755 --- a/neofetch +++ b/neofetch @@ -1518,7 +1518,7 @@ getresolution () { "Linux" | "BSD") if type -p xrandr >/dev/null 2>&1; then case "$refresh_rate" in - "on") resolution="$(xrandr --nograb --current | nawk 'match($0,/[0-9]*\.[0-9]*\*/) {printf $1 " @ " substr($0,RSTART,RLENGTH) "Hz, "}')" ;; + "on") resolution="$(xrandr --nograb --current | awk 'match($0,/[0-9]*\.[0-9]*\*/) {printf $1 " @ " substr($0,RSTART,RLENGTH) "Hz, "}')" ;; "off") resolution="$(xrandr --nograb --current | awk '/\*/ {printf $1 ", "}')" ;; esac resolution="${resolution//\*}"