From ff3d6fb4fec5a32544979c90d2e676cf5315bb80 Mon Sep 17 00:00:00 2001 From: Martin Lablans Date: Tue, 31 May 2022 13:40:25 +0200 Subject: [PATCH] =?UTF-8?q?Bugfix=20in=20fetchVarsFromVaultByFile:=20Detec?= =?UTF-8?q?t=20variables=20with=20values=20=C3=A0=20la=20""?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/functions.sh b/lib/functions.sh index a63031f..2dccb5d 100755 --- a/lib/functions.sh +++ b/lib/functions.sh @@ -55,7 +55,7 @@ fetchVarsFromVaultByFile() { VARS_TO_FETCH="" for line in $(cat $@); do - if [[ $line =~ .*=\.* ]]; then + if [[ $line =~ .*=[\"]*\[\"]*.* ]]; then VARS_TO_FETCH+="$(echo -n $line | sed 's/=.*//') " fi done