Last active
January 12, 2019 12:13
-
-
Save ivanzoid/ccf1e65edcc8d90d9df1b741b0f7ec37 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 -ex | |
usage() | |
{ | |
local PROG_NAME=`basename $0` | |
echo "Usage: $PROG_NAME params" | |
} | |
main() | |
{ | |
if [ "$#" -lt 1 ]; then | |
usage | |
exit 1 | |
fi | |
# … | |
} | |
main "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment