Update run.sh

This commit is contained in:
Alexandre
2021-05-13 13:55:32 +02:00
committed by GitHub
parent 96f39f516a
commit 1f8577e65b

View File

@@ -53,9 +53,8 @@ if bashio::config.has_value 'run_for_hours'; then
RUNTIME=$(bashio::config 'run_for_hours')
bashio::log.info "... Addon will stop after $RUNTIME hours"
sleep $TIMEOUT && \
kill "$PID" && \
bashio::log.info "... Timeout achieved, addon will stop !"
bashio::log.info "... Timeout achieved, addon will stop !" && \
kill "$PID"
else
bashio::log.info "... run_for_hours option not defined, addon will run continuously"
fi