Skip to content

Instantly share code, notes, and snippets.

@Mikulas
Created May 22, 2017 07:54
Show Gist options
  • Save Mikulas/8ef25d7edd0ca014c091ad2be604f59a to your computer and use it in GitHub Desktop.
Save Mikulas/8ef25d7edd0ca014c091ad2be604f59a to your computer and use it in GitHub Desktop.
SYSNAME="$(uname)"
if [[ "$SYSNAME" == 'Linux' ]]; then
echo "Linux"
elif [[ "$SYSNAME" == 'Darwin' ]]; then
echo "macOS"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment