mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-23 20:12:31 +00:00
haiku: fix various issues
This commit is contained in:
4
neofetch
4
neofetch
@@ -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() {
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
"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/ @*}"
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user