mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 18:31:02 +01:00
Update entrypoint.sh
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user