Cleanup getos

This commit is contained in:
Dylan 2016-02-21 08:21:55 +11:00
parent 896716d2ba
commit e3a27d6093
1 changed files with 6 additions and 24 deletions

30
fetch
View File

@ -372,30 +372,12 @@ config_file="$HOME/.config/fetch/config"
# Operating System {{{
case "$(uname)" in
"Linux")
os="Linux"
;;
"Darwin")
os="Mac OS X"
;;
"OpenBSD")
os="OpenBSD"
;;
*"BSD")
os="BSD"
;;
"CYGWIN"*)
os="Windows"
;;
*)
printf "%s\n" "Couldn't detect OS, exiting"
exit 1
;;
"Linux") os="Linux" ;;
"Darwin") os="Mac OS X" ;;
"OpenBSD") os="OpenBSD" ;;
*"BSD") os="BSD" ;;
"CYGWIN"*) os="Windows" ;;
*) printf "%s\n" "Unknown OS detected: $(uname)"; exit 1 ;;
esac
# }}}