Last active
May 15, 2016 15:08
-
-
Save linki/2bec07f9c41249de0f99611d763ad76c to your computer and use it in GitHub Desktop.
shenza.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
#!/usr/bin/env bash | |
set -e | |
# USAGE: | |
# ./shenza.sh appname "some reason" | |
appname="${1}" | |
reason="${2}" | |
if [ -z "${appname}" ]; then | |
echo "Specify an application name" | |
exit 1 | |
fi | |
if [ -z "${reason}" ]; then | |
echo "Specify a reason" | |
exit 1 | |
fi | |
eval "$(senza instances "${appname}" -p "${reason}" | tail -n1)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment