Compare commits
1 Commits
de1b02c585
...
fix/issue-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9d0bcef465 |
@@ -83,9 +83,10 @@ EOF
|
|||||||
if [ -n "$existing_base" ] && [ "$existing_base" != "null" ]; then
|
if [ -n "$existing_base" ] && [ "$existing_base" != "null" ]; then
|
||||||
if [ "$force" = true ]; then
|
if [ "$force" = true ]; then
|
||||||
echo "Warning: Reinitializing sessions (force mode)" >&2
|
echo "Warning: Reinitializing sessions (force mode)" >&2
|
||||||
echo "Destroying existing sessions..." >&2
|
echo "Destroying all sessions, worktrees, and logs..." >&2
|
||||||
cmd_destroy --base -y 2>/dev/null || true
|
cmd_destroy --base -y 2>/dev/null || true
|
||||||
cmd_destroy --pm-agent -y 2>/dev/null || true
|
cmd_destroy --pm-agent -y 2>/dev/null || true
|
||||||
|
rm -f "$LOGS_DIR"/*.log 2>/dev/null || true
|
||||||
else
|
else
|
||||||
echo "Error: Base session already exists: $existing_base" >&2
|
echo "Error: Base session already exists: $existing_base" >&2
|
||||||
echo "Use --force to reinitialize" >&2
|
echo "Use --force to reinitialize" >&2
|
||||||
|
|||||||
Reference in New Issue
Block a user