mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-12 02:21:28 +02:00
Update run.sh
This commit is contained in:
@@ -55,7 +55,8 @@ if bashio::config.has_value 'run_duration'; then
|
|||||||
bashio::log.info "... Addon will stop after $RUNTIME"
|
bashio::log.info "... Addon will stop after $RUNTIME"
|
||||||
sleep $RUNTIME && \
|
sleep $RUNTIME && \
|
||||||
bashio::log.info "... Timeout achieved, addon will stop !" && \
|
bashio::log.info "... Timeout achieved, addon will stop !" && \
|
||||||
kill "$PID"
|
#kill "$PID"
|
||||||
|
exit 0
|
||||||
else
|
else
|
||||||
bashio::log.info "... run_duration option not defined, addon will run continuously"
|
bashio::log.info "... run_duration option not defined, addon will run continuously"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user