File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change 2
2
set -o errexit # abort if any command fails
3
3
me=$( basename " $0 " )
4
4
5
- read -r -d ' ' " help_message" << EOF || true
6
-
5
+ help_message=" \
7
6
Deploy generated files to a git branch.
8
7
9
8
Usage:
@@ -31,12 +30,7 @@ Variables:
31
30
These variables have default values defined in the script. The defaults can be
32
31
overridden by environment variables. Any environment variables are overridden
33
32
by values set in a '.env' file (if it exists), and in turn by those set in a
34
- file specified by the '--config-file' option.
35
- EOF
36
-
37
- print_help () {
38
- printf " %s\n" " $help_message "
39
- }
33
+ file specified by the '--config-file' option."
40
34
41
35
main () {
42
36
# Set args from a local environment file.
@@ -50,7 +44,7 @@ main() {
50
44
# Parse arg flags
51
45
while : ; do
52
46
if [[ $1 = " -h" || $1 = " --help" ]]; then
53
- print_help
47
+ echo " $help_message "
54
48
return 0
55
49
elif [[ $1 = " -v" || $1 = " --verbose" ]]; then
56
50
verbose=true
You can’t perform that action at this time.
0 commit comments