Skip to content

Instantly share code, notes, and snippets.

@oti
Created June 9, 2015 09:28
Show Gist options
  • Save oti/356e35157b62872c2bf2 to your computer and use it in GitHub Desktop.
Save oti/356e35157b62872c2bf2 to your computer and use it in GitHub Desktop.
commandReady.sh
#!/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