fix: syntax error in cmd_continue line 372 (issue #189) #190

Merged
shoko merged 1 commits from fix/issue-syntax-error-372 into main 2026-04-06 10:46:09 +02:00
Owner

Bug

cmd_continue has a syntax error on line 372:

nohup sh -c "..." >> "$LOGS_DIR/..." 2>&1 & && disown

The & puts the command in background and returns immediately, then && disown runs as a separate statement - but && expects a command on the left side.

Fix

Wrap the nohup command in a subshell:

(nohup sh -c "..." >> "$LOGS_DIR/..." 2>&1 &) && disown
## Bug cmd_continue has a syntax error on line 372: ```bash nohup sh -c "..." >> "$LOGS_DIR/..." 2>&1 & && disown ``` The `&` puts the command in background and returns immediately, then `&& disown` runs as a separate statement - but `&&` expects a command on the left side. ## Fix Wrap the nohup command in a subshell: ```bash (nohup sh -c "..." >> "$LOGS_DIR/..." 2>&1 &) && disown ```
shoko added 1 commit 2026-04-06 10:44:42 +02:00
Wrap nohup command in subshell to fix '&& disown' syntax error
shoko merged commit 1a523a805a into main 2026-04-06 10:46:09 +02:00
Sign in to join this conversation.