Syntax error in cmd_continue line 372: unexpected token '&&' #189

Closed
opened 2026-04-06 10:44:19 +02:00 by shoko · 0 comments
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 closed this issue 2026-04-06 10:46:10 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shoko/kugetsu#189