Created
September 4, 2015 09:59
-
-
Save jmtd/27395964be6985f03a2a to your computer and use it in GitHub Desktop.
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
pavonis$ cat test.sh | |
service="hi_there" | |
if [[ "$service" == *"_"* ]]; then | |
echo works 1 | |
fi | |
if [ "$service" == *"_"* ]; then | |
echo works 2 | |
fi | |
pavonis$ sh test.sh | |
works 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment