Skip to content

Commit d891d27

Browse files
Merge pull request #2 from wesley-dean-flexion/documentation_tidy
Update demo and documentation
2 parents 756b72f + a71b11c commit d891d27

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# bash\_shell\_script\_starter
1+
# Bash shell script starter
22

33
This is a starter / template for writing Bash scripts. It includes a
44
few things:

shell_script_template.bash

+8-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ SCRIPT_PATH="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd -P)"
2929
## @brief default value for the 'word' CLI parameter
3030
declare DEFAULT_WORD
3131
# shellcheck disable=SC2034
32-
DEFAULT_WORD="hello"
32+
DEFAULT_WORD="bird"
3333

3434

3535
## @fn die
@@ -166,7 +166,12 @@ main() {
166166

167167
shift "$((OPTIND - 1))"
168168

169-
# Process positional arguments
169+
170+
###
171+
### Process positional arguments
172+
###
173+
174+
170175
for file in "$@" ; do
171176
printf "%s" "$file"
172177
done
@@ -176,7 +181,7 @@ main() {
176181
### program logic goes here
177182
###
178183

179-
echo "$word"
184+
printf "%s %s %s the %s is the word\n" "$word" "$word" "$word" "$word"
180185

181186
}
182187

0 commit comments

Comments
 (0)