Created
September 28, 2011 01:55
-
-
Save SpringMT/1246797 to your computer and use it in GitHub Desktop.
シェル(bash)でOS判定分岐
This file contains hidden or 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
| 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