mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-03-03 16:00:29 +01: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"
|
||||
# Change shebang if no s6 supervision
|
||||
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"
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user