repo.or.cz
/
dotfiles_afify.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[fix] github username in scripts
[dotfiles_afify.git]
/
.scripts
/
detect_os.sh
blob
e33907d24ae7c23a944cacb6f2714c7d76b058bd
1
#!/usr/bin/env bash
2
3
distro
=
$
(
uname
-a
|
awk
'{print
$2
}'
)
4
5
case
$OSTYPE
in
6
"linux-gnu"
)
echo
linux
$distro
;;
7
"darwin"
*)
echo
mac
;;
8
"openbsd"
*)
echo
openbsd
;;
9
esac