0506
This commit is contained in:
@@ -146,6 +146,10 @@ dispatch_task() {
|
||||
n="${BASH_REMATCH[1]}"
|
||||
base_task="update-reboot" # runs update-reboot.yml (wrapper -> update-rebootin222.yml)
|
||||
extra_nbplay_opts+=("-erebootin=${n}")
|
||||
elif [[ "$base_task" =~ ^update-reboot-scheduler_([0-9]{1,4})$ ]]; then
|
||||
n="${BASH_REMATCH[1]}"
|
||||
base_task="update-reboot-scheduler"
|
||||
extra_nbplay_opts+=("-erebootin=${n}")
|
||||
elif [[ "$base_task" =~ ^update-indoor_([0-9]{1,4})$ ]]; then
|
||||
# CHANGED: keep same convention as others — pass HOURS directly via -e rebootin=<n>
|
||||
n="${BASH_REMATCH[1]}"
|
||||
@@ -160,7 +164,7 @@ dispatch_task() {
|
||||
fi
|
||||
|
||||
# --- Default rebootin for reboot-family when not explicitly provided ---
|
||||
if [[ "$base_task" =~ ^(update-rebootin222|update-rebootin|update-reboot)$ ]]; then
|
||||
if [[ "$base_task" =~ ^(update-rebootin222|update-rebootin|update-reboot|update-reboot-scheduler)$ ]]; then
|
||||
# only set if neither task_options nor extra_nbplay_opts already contain rebootin
|
||||
if [[ "$task_options" != *"rebootin="* ]] && ! printf '%s\n' "${extra_nbplay_opts[@]}" | grep -q 'rebootin='; then
|
||||
# restore legacy behavior: immediate reboot if none specified
|
||||
|
||||
Reference in New Issue
Block a user