@@ -118,6 +118,24 @@ display_usage() {
118
118
}
119
119
120
120
121
+ # ##
122
+ # ## If there is a library directory (lib/) relative to the
123
+ # ## script's location by default), then attempt to source
124
+ # ## the *.bash files located there.
125
+ # ##
126
+
127
+
128
+ if [ -n " ${LIBRARY_PATH} " ] \
129
+ && [ -d " ${LIBRARY_PATH} " ] ; then
130
+ for library in " ${LIBRARY_PATH} " * .bash ; do
131
+ if [ -e " ${library} " ] ; then
132
+ # shellcheck disable=SC1090
133
+ . " ${library} "
134
+ fi
135
+ done
136
+ fi
137
+
138
+
121
139
# # @fn main()
122
140
# # @brief This is the main program loop.
123
141
# # @details
@@ -128,25 +146,7 @@ main() {
128
146
129
147
trap die ERR
130
148
131
-
132
- # ##
133
- # ## If there is a library directory (lib/) relative to the
134
- # ## script's location by default), then attempt to source
135
- # ## the *.bash files located there.
136
- # ##
137
-
138
-
139
- if [ -n " ${LIBRARY_PATH} " ] \
140
- && [ -d " ${LIBRARY_PATH} " ] ; then
141
- for library in " ${LIBRARY_PATH} " * .bash ; do
142
- if [ -e " ${library} " ] ; then
143
- # shellcheck disable=SC1090
144
- . " ${library} "
145
- fi
146
- done
147
- fi
148
-
149
-
149
+
150
150
# ##
151
151
# ## set values from their defaults here
152
152
# ##
@@ -188,7 +188,7 @@ main() {
188
188
189
189
190
190
# ##
191
- # ## Process positional arguments
191
+ # ## process positional arguments
192
192
# ##
193
193
194
194
@@ -201,6 +201,7 @@ main() {
201
201
# ## program logic goes here
202
202
# ##
203
203
204
+
204
205
printf " %s %s %s the %s is the word\n" " $word " " $word " " $word " " $word "
205
206
206
207
}
0 commit comments