mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-25 02:01:52 +02: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})
|
mapfile -t arr < <(jq -r 'keys[]' ${JSONSOURCE})
|
||||||
for KEYS in ${arr[@]}; do
|
for KEYS in ${arr[@]}; do
|
||||||
# export key
|
# export key
|
||||||
|
VALUE=$(jq .$KEYS ${JSONSOURCE})
|
||||||
|
export ${KEYS}=${VALUE:1:-1}
|
||||||
export $(echo "${KEYS}=$(jq .$KEYS ${JSONSOURCE})")
|
export $(echo "${KEYS}=$(jq .$KEYS ${JSONSOURCE})")
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user