-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.sh
More file actions
71 lines (65 loc) · 1.34 KB
/
template.sh
File metadata and controls
71 lines (65 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/usr/bin/env bash
#
# Phenates; v0.1
# Script purpose....
#Variables:
PURPOSE=""
NOCOLOR='\033[0m'
BLUE='\033[0;34m'
RED='\033[0;31m'
#######################################
# Show script usage.
# Arguments: Options (h,i,r)
# Outputs: None
#######################################
usage() {
echo "Usage: $(basename "$0") [OPTIONS]"
echo "Purpose: $PURPOSE"
echo "Options:"
echo " -h, --help: Display usage"
}
#######################################
# Header start & end script.
# Arguments: "start" or "end"
# Outputs: None
#######################################
header() {
case $1 in
"start")
echo ""
echo ""
echo -e "$BLUE//////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"
echo -e "$BLUE////////// $(basename "$0") started... \\\\\\\\\\"
;;
"end")
echo -e "$BLUE\\\\\\\\\\ $(basename "$0") finished... //////////"
echo -e "$BLUE\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\//////////////////////////////"
echo ""
echo ""
;;
esac
}
#######################################
# Function.
# Arguments: None
# Outputs: None
#######################################
my_function() {
return 0
}
#######################################
# Main function.
# Arguments: None
# Outputs: None
#######################################
main() {
case "$1" in
-h | --help)
usage
;;
*)
usage
;;
esac
}
main "$*"