Skip to content

Update pkg/controller/pxc/users.go

Sign in for the full log view
GitHub Actions / shellcheck succeeded Dec 22, 2023 in 0s

reviewdog [shellcheck] report

reported by reviewdog 🐶

Findings (0)
Filtered Findings (41)

build/pxc-configure-pxc.sh|48 col 21| Expanding an array without an index only gives the first element.
build/pxc-configure-pxc.sh|49 col 29| Expanding an array without an index only gives the first element.
build/pxc-configure-pxc.sh|53 col 34| Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a.
build/pxc-configure-pxc.sh|56 col 44| Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a.
build/pxc-configure-pxc.sh|104 col 9| Double quote to prevent globbing and word splitting.
build/pxc-configure-pxc.sh|108 col 9| Double quote to prevent globbing and word splitting.
build/pxc-configure-pxc.sh|114 col 9| Double quote to prevent globbing and word splitting.
build/pxc-configure-pxc.sh|114 col 37| Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
build/pxc-configure-pxc.sh|114 col 43| Double quote to prevent globbing and word splitting.
build/pxc-configure-pxc.sh|119 col 9| Double quote to prevent globbing and word splitting.
build/pxc-configure-pxc.sh|119 col 13| Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
build/pxc-configure-pxc.sh|119 col 19| Double quote to prevent globbing and word splitting.
build/pxc-configure-pxc.sh|119 col 24| Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
build/pxc-configure-pxc.sh|119 col 30| Double quote to prevent globbing and word splitting.
build/readiness-check.sh|34 col 15| Prefer mapfile or read -a to split command output (or quote to avoid splitting).
build/pxc-entrypoint.sh|44 col 41| Double quote to prevent globbing and word splitting.
build/pxc-entrypoint.sh|63 col 6| ShellCheck can't follow non-constant source. Use a directive to specify location.
build/pxc-entrypoint.sh|251 col 5| Assigning an array to a string! Assign as array, or use * instead of @ to concatenate.
build/pxc-entrypoint.sh|261 col 5| Assigning an array to a string! Assign as array, or use * instead of @ to concatenate.
build/pxc-entrypoint.sh|262 col 24| Double quote to prevent globbing and word splitting.
build/pxc-entrypoint.sh|262 col 28| Double quote to prevent globbing and word splitting.
build/pxc-entrypoint.sh|299 col 48| Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
build/pxc-entrypoint.sh|312 col 34| Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
build/pxc-entrypoint.sh|312 col 70| Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
build/pxc-entrypoint.sh|364 col 8| Use -n instead of ! -z.
build/pxc-entrypoint.sh|372 col 8| Use -n instead of ! -z.
build/pxc-entrypoint.sh|372 col 32| Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
build/pxc-entrypoint.sh|429 col 8| Use -n instead of ! -z.
build/pxc-entrypoint.sh|443 col 22| Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
build/pxc-entrypoint.sh|461 col 8| Use -n instead of ! -z.
build/pxc-entrypoint.sh|478 col 7| Use -n instead of ! -z.
build/pxc-entrypoint.sh|484 col 22| Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
build/pxc-entrypoint.sh|501 col 8| Use -n instead of ! -z.
build/pxc-entrypoint.sh|531 col 22| Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
build/pxc-entrypoint.sh|536 col 7| Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead.
build/pxc-entrypoint.sh|540 col 26| Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
build/pxc-entrypoint.sh|555 col 38| Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
build/pxc-entrypoint.sh|559 col 7| Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead.
build/pxc-entrypoint.sh|596 col 14| Double quote to prevent globbing and word splitting.
build/pxc-entrypoint.sh|649 col 51| Not following: /opt/percona/hookscript/hook.sh was not specified as input (see shellcheck -x).
build/pxc-entrypoint.sh|651 col 11| Double quote to prevent globbing and word splitting.