haiku: fix various issues

This commit is contained in:
Dylan Araps 2019-09-28 11:40:39 +03:00
parent ddc96b8250
commit 0ab8a2303f
1 changed files with 2 additions and 2 deletions

View File

@ -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/ @*}"
;;