Cleanup getos
This commit is contained in:
parent
896716d2ba
commit
e3a27d6093
1 changed files with 6 additions and 24 deletions
30
fetch
30
fetch
|
@ -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
|
||||
|
||||
# }}}
|
||||
|
|
Loading…
Reference in a new issue