Skip to content

Instantly share code, notes, and snippets.

@alexjpaz
Created August 2, 2016 12:30
Show Gist options
  • Save alexjpaz/f245e53e173087361a312d2cf88dbfcb to your computer and use it in GitHub Desktop.
Save alexjpaz/f245e53e173087361a312d2cf88dbfcb to your computer and use it in GitHub Desktop.
tasks bash script template
#!/bin/bash
# change the directory to the script directory
cd ${0%/*}
CMD=${1:-usage}
shift 1
ARGS=$@
usage() {
echo "usage text"
}
$CMD $ARGS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment