Bugfix in fetchVarsFromVaultByFile: Detect variables with values à la "<VAULT>"

This commit is contained in:
Martin Lablans 2022-05-31 13:40:25 +02:00
parent 9f76b0c739
commit ff3d6fb4fe
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ fetchVarsFromVaultByFile() {
VARS_TO_FETCH=""
for line in $(cat $@); do
if [[ $line =~ .*=\<VAULT\>.* ]]; then
if [[ $line =~ .*=[\"]*\<VAULT\>[\"]*.* ]]; then
VARS_TO_FETCH+="$(echo -n $line | sed 's/=.*//') "
fi
done