Created
June 9, 2015 09:28
-
-
Save oti/356e35157b62872c2bf2 to your computer and use it in GitHub Desktop.
commandReady.sh
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
#!/bin/sh | |
which AwesomeCommand | |
commandReady=$? | |
if [ "commandReady" = 0 ]; then | |
echo "AwesomeCommand is ready." | |
else | |
echo "AwesomeCommand is not ready." | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment