Created
March 31, 2016 12:50
-
-
Save CMCDragonkai/933f8a7808c9ecb9a0418d2ea3864a21 to your computer and use it in GitHub Desktop.
CLI: Detect Cygwin or MINGW
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
#!/usr/bin/env bash | |
case "$(uname --kernel-name)" in | |
*cygwin*|*CYGWIN*|*mingw*|*MINGW*|*msys*|*MSYS*) | |
echo "I'm in cygwin or mingw!" | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment