From 1f8577e65b43b16e5afe350acaa257b1e2726233 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 13 May 2021 13:55:32 +0200 Subject: [PATCH] Update run.sh --- joal/rootfs/run.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/joal/rootfs/run.sh b/joal/rootfs/run.sh index 027529061..19ede98d4 100644 --- a/joal/rootfs/run.sh +++ b/joal/rootfs/run.sh @@ -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