mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-05 13:38:47 +02:00
Force export
https://github.com/alexbelgium/hassio-addons/issues/747#issuecomment-1574960626
This commit is contained in:
@@ -26,7 +26,16 @@ chmod -R 777 "$CONFIG_HOME"
|
|||||||
|
|
||||||
# Export variables
|
# Export variables
|
||||||
set -a
|
set -a
|
||||||
/./"$CONFIG_HOME"/config.env
|
cp /./"$CONFIG_HOME"/config.env /config.env
|
||||||
|
# Remove previous instance
|
||||||
|
sed -i "s|export ||g" /config.env
|
||||||
|
# Add export for non empty lines
|
||||||
|
sed -i '/\S/s/^/export /' /config.env
|
||||||
|
# Delete lines starting with #
|
||||||
|
sed -i '/export #/d' /config.env
|
||||||
|
# Get variables
|
||||||
|
source /config.env
|
||||||
|
rm /config.env
|
||||||
set +a
|
set +a
|
||||||
|
|
||||||
##############
|
##############
|
||||||
|
|||||||
Reference in New Issue
Block a user