From 0ab8a2303f5f3d63d7c69e28a651f63a5a9c6141 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 28 Sep 2019 11:40:39 +0300 Subject: [PATCH] haiku: fix various issues --- neofetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 971b8305..ef745c35 100755 --- a/neofetch +++ b/neofetch @@ -1021,7 +1021,7 @@ get_distro() { ;; "Haiku") - read -r name version _ <<< "$(uname -sv)" + read -r name version _ <<< "$(uname -s)" distro="$name $version" ;; @@ -2653,7 +2653,7 @@ get_resolution() { ;; "Haiku") - resolution="$(screenmode | awk -F ' |, ' '{printf $2 "x" $3 " @ " $6 $7}')" + resolution="$(screenmode | awk -F ' |, ' 'END{printf $2 "x" $3 " @ " $6 $7}')" [[ "$refresh_rate" == "off" ]] && resolution="${resolution/ @*}" ;;