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 {{{
|
# Operating System {{{
|
||||||
|
|
||||||
case "$(uname)" in
|
case "$(uname)" in
|
||||||
"Linux")
|
"Linux") os="Linux" ;;
|
||||||
os="Linux"
|
"Darwin") os="Mac OS X" ;;
|
||||||
;;
|
"OpenBSD") os="OpenBSD" ;;
|
||||||
|
*"BSD") os="BSD" ;;
|
||||||
"Darwin")
|
"CYGWIN"*) os="Windows" ;;
|
||||||
os="Mac OS X"
|
*) printf "%s\n" "Unknown OS detected: $(uname)"; exit 1 ;;
|
||||||
;;
|
|
||||||
|
|
||||||
"OpenBSD")
|
|
||||||
os="OpenBSD"
|
|
||||||
;;
|
|
||||||
|
|
||||||
*"BSD")
|
|
||||||
os="BSD"
|
|
||||||
;;
|
|
||||||
|
|
||||||
"CYGWIN"*)
|
|
||||||
os="Windows"
|
|
||||||
;;
|
|
||||||
|
|
||||||
*)
|
|
||||||
printf "%s\n" "Couldn't detect OS, exiting"
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
|
|
Loading…
Reference in a new issue