mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-04 13:08:45 +02:00
Source instead of execute
https://github.com/alexbelgium/hassio-addons/issues/1933#issuecomment-3044685362
This commit is contained in:
@@ -17,7 +17,7 @@ for SCRIPTS in /etc/cont-init.d/*; do
|
|||||||
chmod a+x "$SCRIPTS"
|
chmod a+x "$SCRIPTS"
|
||||||
# Change shebang if no s6 supervision
|
# Change shebang if no s6 supervision
|
||||||
sed -i 's|/usr/bin/with-contenv bashio|/usr/bin/env bashio|g' "$SCRIPTS"
|
sed -i 's|/usr/bin/with-contenv bashio|/usr/bin/env bashio|g' "$SCRIPTS"
|
||||||
/."$SCRIPTS" || echo -e "\033[0;31mError\033[0m : $SCRIPTS exiting $?"
|
. "$SCRIPTS" || echo -e "\033[0;31mError\033[0m : $SCRIPTS exiting $?"
|
||||||
rm "$SCRIPTS"
|
rm "$SCRIPTS"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user