update _getdeployconf to allow double quotes in config file
when loading values from the config file that had a double quote (") an
error was produced on the eval statement resulting in failure to load
the variable. Fixed with a sed to escape double quotes in the value
prior to performing the eval
This commit is contained in:
parent
a818b2adc0
commit
a46670618b
1
acme.sh
1
acme.sh
@ -2398,6 +2398,7 @@ _getdeployconf() {
|
|||||||
return 0 # do nothing
|
return 0 # do nothing
|
||||||
fi
|
fi
|
||||||
_saved="$(_readdomainconf "SAVED_$_rac_key")"
|
_saved="$(_readdomainconf "SAVED_$_rac_key")"
|
||||||
|
_saved=$(echo "$_saved" | sed 's/"/\\"/g')
|
||||||
eval $_rac_key="\"$_saved\""
|
eval $_rac_key="\"$_saved\""
|
||||||
export $_rac_key
|
export $_rac_key
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user