Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
set -eo pipefail
curl -s "$hostandport" >/dev/null && \
echo "Already running on $hostandport" && \
exit 1 || exec "$@"

This comment has been minimized.

Copy link
Owner Author

@peterbe peterbe commented Jun 11, 2018

To install, run:

curl -L -o ~/bin/
chmod +x ~/bin/

Read the blog post for more info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment