From a2664b8c98d7020b6f4b52518b465a83cd719a98 Mon Sep 17 00:00:00 2001 From: "guillaume.lambert" Date: Tue, 7 Dec 2021 15:51:50 +0100 Subject: [COMMON] Fix shopt nullglob bashism pointed out by checkbashisms. shopt, and therefore all the options it provides (only nullglob here) are not defined by POSIX and are bash-specific. The specific option nullglob is well documented in the bash manual. In short, it makes filename globbing patterns that do not match any filenames simply expanded to nothing rather than remaining unexpanded. $ echo my*file my*file $ shopt -s nullglob $ echo my*file This is actually useless in the script where it is used here since no blob is used to expand such filenames. Issue-ID: OOM-2643 Signed-off-by: guillaume.lambert Change-Id: Id336c17a46c6e5c0748562e7cd8f0efa5570ce6d --- .../portal-mariadb/resources/config/mariadb/docker-entrypoint.sh | 1 - 1 file changed, 1 deletion(-) (limited to 'kubernetes/portal/components/portal-mariadb') diff --git a/kubernetes/portal/components/portal-mariadb/resources/config/mariadb/docker-entrypoint.sh b/kubernetes/portal/components/portal-mariadb/resources/config/mariadb/docker-entrypoint.sh index ddaf099bdf..be4ec7c18a 100644 --- a/kubernetes/portal/components/portal-mariadb/resources/config/mariadb/docker-entrypoint.sh +++ b/kubernetes/portal/components/portal-mariadb/resources/config/mariadb/docker-entrypoint.sh @@ -1,7 +1,6 @@ #!/bin/bash set -eo pipefail -shopt -s nullglob # logging functions mysql_log() { -- cgit 1.2.3-korg