Skip to content

Instantly share code, notes, and snippets.

@strokyl
Last active September 10, 2021 12:19
Show Gist options
  • Save strokyl/bdef26d7faae4aa051edf047357da96b to your computer and use it in GitHub Desktop.
Save strokyl/bdef26d7faae4aa051edf047357da96b to your computer and use it in GitHub Desktop.
#!/bin/bash -eu
echoerr() { echo "$@" 1>&2; }
SCRIPTDIR=$(dirname "$0")
main() {
echo "Yo from $SCRIPTDIR"
echo ${TO_SET:?"Please set TO_SET"}
echoerr "Error"
}
main "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment