Created
June 22, 2019 11:32
-
-
Save IsmiKin/3fd5e4443a4c693e81b0744b9aadd22e to your computer and use it in GitHub Desktop.
Checker machine OS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unameOut="$(uname -s)" | |
case "${unameOut}" in | |
Linux*) machine=Linux;; | |
Darwin*) machine=Mac;; | |
CYGWIN*) machine=Cygwin;; | |
MINGW*) machine=MinGw;; | |
*) machine="UNKNOWN:${unameOut}" | |
esac | |
echo ${machine} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment