From 6aa84a35b9fabbf11eecaaf478f42ae9ec6cf936 Mon Sep 17 00:00:00 2001 From: shokollm <270575765+shokollm@users.noreply.github.com> Date: Mon, 6 Apr 2026 08:44:29 +0000 Subject: [PATCH] fix: syntax error in cmd_continue line 372 (issue #189) Wrap nohup command in subshell to fix '&& disown' syntax error --- skills/kugetsu/scripts/kugetsu-session.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skills/kugetsu/scripts/kugetsu-session.sh b/skills/kugetsu/scripts/kugetsu-session.sh index 293e58e..7a50f46 100755 --- a/skills/kugetsu/scripts/kugetsu-session.sh +++ b/skills/kugetsu/scripts/kugetsu-session.sh @@ -369,7 +369,7 @@ cmd_continue() { if [ -n "$worktree_path" ] && [ -d "$worktree_path" ]; then (cd "$worktree_path" && nohup sh -c "GITEA_TOKEN='$GITEA_TOKEN' opencode run '$message' --continue --session '$opencode_session_id'" >> "$LOGS_DIR/dev-$opencode_session_id.log" 2>&1 &) && disown else - nohup sh -c "GITEA_TOKEN='$GITEA_TOKEN' opencode run '$message' --continue --session '$opencode_session_id'" >> "$LOGS_DIR/dev-$opencode_session_id.log" 2>&1 & && disown + (nohup sh -c "GITEA_TOKEN='$GITEA_TOKEN' opencode run '$message' --continue --session '$opencode_session_id'" >> "$LOGS_DIR/dev-$opencode_session_id.log" 2>&1 &) && disown fi }