From f51f8ffe459709b95d44e60a2fb9ebd5031d7f8d Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 7 Dec 2025 02:04:56 +0100 Subject: [PATCH] scripts: make restart clean step resilient --- scripts/restart-mac.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/restart-mac.sh b/scripts/restart-mac.sh index d47b9a762..0ad950107 100755 --- a/scripts/restart-mac.sh +++ b/scripts/restart-mac.sh @@ -77,7 +77,7 @@ log "==> Killing existing Clawdis instances" kill_all_clawdis # 2) Rebuild into the same path the packager consumes (.build). -run_step "clean build cache" bash -lc "cd '${ROOT_DIR}/apps/macos' && rm -rf .build .build-swift .swiftpm" +run_step "clean build cache" bash -lc "cd '${ROOT_DIR}/apps/macos' && rm -rf .build .build-swift .swiftpm 2>/dev/null || true" run_step "swift build" bash -lc "cd '${ROOT_DIR}/apps/macos' && swift build -q --product Clawdis" # 3) Package + relaunch the app (script also stops any stragglers).