Closed dhaeckel closed 8 months ago
I'm thinking the unset def
was too brutal. What do you think about:
diff --git a/healthcheck.sh b/healthcheck.sh
index 5a3136e..530483f 100755
--- a/healthcheck.sh
+++ b/healthcheck.sh
@@ -309,7 +309,7 @@ while [ $# -gt 0 ]; do
datadir=${1}
;;
--no-defaults)
- unset def
+ def=()
nodefaults=1
;;
--defaults-file=*|--defaults-extra-file=*|--defaults-group-suffix=*)
@grooverdan This does work in my reproduction script without generating an error, so I approve of this solution. Thanks for the rapid response. Should I close this issue?
I will when I commit a fix.
Thank you.
Hi,
I noticed a bash error when running the following command as healthcheck
This results in
I reproduced the issue with the following bash script, the issue stems from the quotes that is used in the parameter expansion
Whe stripping the qoutes from the array key in the param expansion the error is gone. I can create a PR for that.
Thanks