Commit 0ab8a230 authored by Dylan Araps's avatar Dylan Araps

haiku: fix various issues

parent ddc96b82
...@@ -1021,7 +1021,7 @@ get_distro() { ...@@ -1021,7 +1021,7 @@ get_distro() {
;; ;;
"Haiku") "Haiku")
read -r name version _ <<< "$(uname -sv)" read -r name version _ <<< "$(uname -s)"
distro="$name $version" distro="$name $version"
;; ;;
...@@ -2653,7 +2653,7 @@ get_resolution() { ...@@ -2653,7 +2653,7 @@ get_resolution() {
;; ;;
"Haiku") "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/ @*}" [[ "$refresh_rate" == "off" ]] && resolution="${resolution/ @*}"
;; ;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment