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
Report was:
In docker-entrypoint.sh line 67:
mysql=( docker_process_sql )
^---^ SC2034: mysql appears unused. Verify use (or export if used externally).
In docker-entrypoint.sh line 81:
. "$f"
^--^ SC1090: ShellCheck can't follow non-constant source. Use a directive to specify location.
In docker-entrypoint.sh line 149:
if [ -z "$MARIADB_ROOT_PASSWORD" -a -z "$MARIADB_ALLOW_EMPTY_ROOT_PASSWORD" -a -z "$MARIADB_RANDOM_ROOT_PASSWORD" ]; then
^-- SC2166: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
^-- SC2166: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
In docker-entrypoint.sh line 228:
passfileArgs=()
^----------^ SC2034: passfileArgs appears unused. Verify use (or export if used externally).
In docker-entrypoint.sh line 231:
MYSQL_PWD= docker_exec_client "$@"
^-- SC1007: Remove space after = if trying to assign a value (for empty string, use var='' ... ).
In docker-entrypoint.sh line 366:
exec gosu mysql "$BASH_SOURCE" "$@"
^----------^ SC2128: Expanding an array without an index only gives the first element.
Copy file name to clipboardExpand all lines: docker-entrypoint.sh
+7-4
Original file line number
Diff line number
Diff line change
@@ -64,6 +64,8 @@ _is_sourced() {
64
64
# process initializer files, based on file extensions
65
65
docker_process_init_files() {
66
66
# mysql here for backwards compatibility "${mysql[@]}"
67
+
# ShellCheck: mysql appears unused. Verify use (or export if used externally)
68
+
# shellcheck disable=SC2034
67
69
mysql=( docker_process_sql )
68
70
69
71
echo
@@ -78,6 +80,8 @@ docker_process_init_files() {
78
80
"$f"
79
81
else
80
82
mysql_note "$0: sourcing $f"
83
+
# ShellCheck can't follow non-constant source. Use a directive to specify location.
84
+
# shellcheck disable=SC1090
81
85
."$f"
82
86
fi
83
87
;;
@@ -146,7 +150,7 @@ docker_temp_server_stop() {
146
150
147
151
# Verify that the minimally required password settings are set for new databases.
148
152
docker_verify_minimum_env() {
149
-
if [ -z"$MARIADB_ROOT_PASSWORD"-a-z"$MARIADB_ALLOW_EMPTY_ROOT_PASSWORD"-a-z"$MARIADB_RANDOM_ROOT_PASSWORD" ];then
153
+
if [ -z"$MARIADB_ROOT_PASSWORD"] && [ -z"$MARIADB_ALLOW_EMPTY_ROOT_PASSWORD"] && [-z"$MARIADB_RANDOM_ROOT_PASSWORD" ];then
150
154
mysql_error $'Database is uninitialized and password option is not specified\n\tYou need to specify one of MARIADB_ROOT_PASSWORD, MARIADB_ALLOW_EMPTY_ROOT_PASSWORD and MARIADB_RANDOM_ROOT_PASSWORD'
0 commit comments