Skip to content

Instantly share code, notes, and snippets.

@linki
Last active May 15, 2016 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save linki/2bec07f9c41249de0f99611d763ad76c to your computer and use it in GitHub Desktop.
Save linki/2bec07f9c41249de0f99611d763ad76c to your computer and use it in GitHub Desktop.
shenza.sh
#!/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