mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-16 04:19:13 +02:00
Update 99-run.sh
This commit is contained in:
@@ -48,14 +48,20 @@ cd /data || true
|
|||||||
|
|
||||||
# Fetch commands
|
# Fetch commands
|
||||||
CMD_ARGUMENTS="$(bashio::config "CMD_ARGUMENTS")"
|
CMD_ARGUMENTS="$(bashio::config "CMD_ARGUMENTS")"
|
||||||
|
CURRENTIFS="$IFS"
|
||||||
echo " "
|
IFS=';'
|
||||||
bashio::log.info "Starting the app with arguments $CMD_ARGUMENTS"
|
read -a strarr <<< "$CMD_ARGUMENTS"
|
||||||
echo " "
|
|
||||||
|
|
||||||
# Add docker-entrypoint command
|
# Add docker-entrypoint command
|
||||||
# shellcheck disable=SC2086
|
# Print each value of the array by using the loop
|
||||||
docker-entrypoint.sh $CMD_ARGUMENTS || true
|
for val in "${strarr[@]}";
|
||||||
|
do
|
||||||
|
echo " "
|
||||||
|
bashio::log.info "Starting the app with arguments $val"
|
||||||
|
echo " "
|
||||||
|
# shellcheck disable=SC2086
|
||||||
|
docker-entrypoint.sh "$val" || true
|
||||||
|
done
|
||||||
|
|
||||||
bashio::log.info "All actions concluded, addon will stop"
|
bashio::log.info "All actions concluded, addon will stop"
|
||||||
bashio::addon.stop
|
bashio::addon.stop
|
||||||
|
|||||||
Reference in New Issue
Block a user