OS: Proper error handling

This commit is contained in:
Dylan Araps 2016-12-23 23:28:59 +11:00
parent 573db1adf5
commit 2c5d13846a
1 changed files with 5 additions and 1 deletions

View File

@ -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
} }