Update entrypoint.sh

This commit is contained in:
Alexandre
2021-11-18 16:54:18 +01:00
committed by GitHub
parent b2b20383f9
commit ecd84ddc15

View File

@@ -14,6 +14,8 @@ echo "All addon options were exported as variables"
mapfile -t arr < <(jq -r 'keys[]' ${JSONSOURCE})
for KEYS in ${arr[@]}; do
# export key
VALUE=$(jq .$KEYS ${JSONSOURCE})
export ${KEYS}=${VALUE:1:-1}
export $(echo "${KEYS}=$(jq .$KEYS ${JSONSOURCE})")
done