Skip to content

Instantly share code, notes, and snippets.

@SpringMT
Created September 28, 2011 01:55
Show Gist options
  • Select an option

  • Save SpringMT/1246797 to your computer and use it in GitHub Desktop.

Select an option

Save SpringMT/1246797 to your computer and use it in GitHub Desktop.
シェル(bash)でOS判定分岐
if [ `uname` = "Darwin" ]; then
#mac用のコード
elif [ `uname` = "Linux" ]; then
#Linux用のコード
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment