mirror of https://github.com/samply/bridgehead.git
Bugfix in fetchVarsFromVaultByFile: Detect variables with values à la "<VAULT>"
This commit is contained in:
parent
9f76b0c739
commit
ff3d6fb4fe
|
@ -55,7 +55,7 @@ fetchVarsFromVaultByFile() {
|
||||||
VARS_TO_FETCH=""
|
VARS_TO_FETCH=""
|
||||||
|
|
||||||
for line in $(cat $@); do
|
for line in $(cat $@); do
|
||||||
if [[ $line =~ .*=\<VAULT\>.* ]]; then
|
if [[ $line =~ .*=[\"]*\<VAULT\>[\"]*.* ]]; then
|
||||||
VARS_TO_FETCH+="$(echo -n $line | sed 's/=.*//') "
|
VARS_TO_FETCH+="$(echo -n $line | sed 's/=.*//') "
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue