mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-29 20:04:05 +02:00
Delete 00-aaa_options_export.sh
This commit is contained in:
@@ -1,16 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
###################################
|
|
||||||
# Export all addon options as env #
|
|
||||||
###################################
|
|
||||||
|
|
||||||
# For all keys in options.json
|
|
||||||
JSONSOURCE="/data/options.json"
|
|
||||||
|
|
||||||
# Export keys as env variables
|
|
||||||
mapfile -t arr < <(jq -r 'keys[]' ${JSONSOURCE})
|
|
||||||
for KEYS in ${arr[@]}; do
|
|
||||||
# export key
|
|
||||||
export $(echo "${KEYS}=$(jq .$KEYS ${JSONSOURCE})")
|
|
||||||
echo "All addon configs exported as env variables"
|
|
||||||
done
|
|
||||||
Reference in New Issue
Block a user