You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, is there a reason why the following won't work?
$ cat make.sh
#!/usr/bin/env bashread -r -d '' __usage <<-'EOF' || true -p --print_deps Print dependencies -c --clean Clean project -b --build Build project -t --test Run tests -v Enable verbose mode, print script as it is executed -d --debug Enables debug mode -h --help This page -n --no-color Disable color outputEOFread -r -d '' __helptext <<-'EOF' || true # exits non-zero when EOF encountered This is a script to support the build of Healthbot Projects, it is intended to be used by all projects and provide required boilerplate functionsEOFsource main.sh
# print_deps modeif [[ "${arg_p:?}"=="1" ]];then
info "Print dependencies"fi# clean modeif [[ "${arg_c:?}"=="1" ]];then
info "Clean project"fi# build modeif [[ "${arg_b:?}"=="1" ]];then
info "Build project"fi# test modeif [[ "${arg_t:?}"=="1" ]];then
info "Running Tests"fi
I've left main.sh as is, other than commenting out the Validation and Runtime sections at the bottom of the file.
./make.sh -p
2019-09-05 21:32:42 UTC [ info] Print dependencies
But the following results in no output.
./make.sh -h
I was expecting that the help mode below in main.sh would work
# help modeif [[ "${arg_h:?}"=="1" ]];then# Help exists with code 1help"Help using ${0}"fi
The rationale for this approach, rather than updating main.sh, is that I can pull the latest main.sh (with fixes / new features) and use with minimal changes.
Any help, much appreciated.
The text was updated successfully, but these errors were encountered:
Hi, is there a reason why the following won't work?
I've left main.sh as is, other than commenting out the Validation and Runtime sections at the bottom of the file.
But the following results in no output.
I was expecting that the help mode below in main.sh would work
The rationale for this approach, rather than updating main.sh, is that I can pull the latest main.sh (with fixes / new features) and use with minimal changes.
Any help, much appreciated.
The text was updated successfully, but these errors were encountered: