Skip to content

Instantly share code, notes, and snippets.

@ajchemist
Created November 24, 2013 04:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajchemist/7623476 to your computer and use it in GitHub Desktop.
Save ajchemist/7623476 to your computer and use it in GitHub Desktop.
unamestr=$(uname -s)
if [[ "$unamestr" == 'Linux' ]]; then
systemtype='linux'
elif [[ "$unamestr" == 'FreeBSD' ]]; then
systemtype='freebsd'
elif [[ "$unamestr" == 'Darwin' ]]; then
systemtype='darwin'
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment