Skip to content

Commit

Permalink
missed scriptResources directory in last commit, adding now
Browse files Browse the repository at this point in the history
  • Loading branch information
PatHurley committed Jun 27, 2020
1 parent 11fb273 commit 0aae0c4
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .scriptResources/template.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
#!/bin/bash
# -----------------------------------------------------------------------------
# Written by: <author>
# <description>
# -----------------------------------------------------------------------------

VERSION=0.1.0
USAGE () {
printf "Usage: $(basename $0) [OPTIONS]... [ARGUMENTS]...
<short description>
OPTIONS.
-h, --help display this help and exit
--version output version information and exit
<further_information>
Exit status:
0 if OK,
1 if minor issue (e.g. cannot parse input),
2 if serious issue (e.g. cannot access file/resource).
<sources>
(i.e. GitHub link, online documentation, etc.)\n"
}

# --- Options processing ------------------------------------------------------

while [[ "$1" =~ ^-.* ]]; do
case $1 in
-h | --help ) shift
USAGE
exit 0
;;
--version ) shift
printf "Script Version:\t$VERSION"
exit 0
;;
*)
printf "\n [!] Invalid option $1\n\n"
USAGE
exit 1
;;
esac; shift
done

# --- Body -------------------------------------------------------------------- #

# SCRIPT LOGIC GOES HERE

exit 0

0 comments on commit 0aae0c4

Please sign in to comment.