mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-21 19:27:12 +00:00
OS: Proper error handling
This commit is contained in:
6
neofetch
6
neofetch
@@ -41,7 +41,11 @@ get_os() {
|
|||||||
"SunOS") os="Solaris" ;;
|
"SunOS") os="Solaris" ;;
|
||||||
"Haiku") os="Haiku" ;;
|
"Haiku") os="Haiku" ;;
|
||||||
"MINIX") os="MINIX" ;;
|
"MINIX") os="MINIX" ;;
|
||||||
*) printf "%s\n" "Unknown OS detected: $kernel_name"; exit 1 ;;
|
*)
|
||||||
|
printf "%s\n" "Unknown OS detected: '$kernel_name', aborting..." >&2
|
||||||
|
printf "%s\n" "Open an issue on GitHub to add support for your OS." >&2
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user