- name: Install Shellcheck\r
run: sudo apt-get install -y shellcheck\r
- name: DoShellcheck\r
- run: shellcheck -V && shellcheck -e SC2181 **/*.sh && echo "shellcheck OK"\r
+ run: shellcheck -V && shellcheck -e SC2181 -e SC2089 **/*.sh && echo "shellcheck OK"\r
\r
shfmt:\r
runs-on: ubuntu-latest\r
error_response="error"
- if test ${_response#*"$error_response"} != "$_response"; then
+ if test "${_response#*"$error_response"}" != "$_response"; then
_err "Error in deploying certificate:"
_err "$_response"
return 1
_your_hosts="$(echo "$_your_hosts" | awk '/\./ {print $1}')"
for l in $_your_hosts; do
#echo "host: $l"
- if test ${_full_domain#*"$l"} != "$_full_domain"; then
+ if test "${_full_domain#*"$l"}" != "$_full_domain"; then
_record=${_full_domain%."$l"}
_host=$l
_debug "The host is $_host and the record $_record"