mirror of
https://github.com/samply/bridgehead.git
synced 2025-06-17 07:10:14 +02:00
Bugfix in fetchVarsFromVaultByFile: Detect variables with values à la "<VAULT>"
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user