OS: Proper error handling

This commit is contained in:
Dylan Araps 2016-12-23 23:28:59 +11:00
parent 573db1adf5
commit 2c5d13846a

View file

@ -41,7 +41,11 @@ get_os() {
"SunOS") os="Solaris" ;;
"Haiku") os="Haiku" ;;
"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
}