From 2c5d13846abe3000decbe19ea0376cb58ae5e723 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 23 Dec 2016 23:28:59 +1100 Subject: [PATCH] OS: Proper error handling --- neofetch | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 74b3a5a3..54249b33 100755 --- a/neofetch +++ b/neofetch @@ -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 }