aboutsummaryrefslogtreecommitdiff
path: root/.local/templates
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2019-10-29 09:42:02 +0100
committerPatrick Spek <p.spek@tyil.nl>2019-10-29 09:42:02 +0100
commit3973bdfd4775f047996768439089218bfdddde8f (patch)
treeb3b30fd38eb02da0fa02bede4dbec7db02ff46bd /.local/templates
parent2fcb8a91326581dc4f90495b472ccea94415ce6d (diff)
Update shell script template
Diffstat (limited to '.local/templates')
-rw-r--r--.local/templates/sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/.local/templates/sh b/.local/templates/sh
index ff7bc6d..27cae4a 100644
--- a/.local/templates/sh
+++ b/.local/templates/sh
@@ -5,7 +5,7 @@ main()
# Handle opts
opts "$@"
shift "$OPTS"
- unset "$OPTS"
+ unset OPTS
# Show help
[ "$OPT_HELP_ONLY" ] && usage && exit 0
@@ -20,7 +20,7 @@ opts()
while getopts ":h" opt
do
case "$opt" in
- h) OPT_HELP_ONLY=1
+ h) OPT_HELP_ONLY=1 ;;
*)
printf "Invalid option passed: %s\n" "$OPTARG" >&2
;;