Created
August 2, 2016 12:30
-
-
Save alexjpaz/f245e53e173087361a312d2cf88dbfcb to your computer and use it in GitHub Desktop.
tasks bash script template
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
#!/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