Skip to content

Commit 496ddbe

Browse files
committed
permissions fix
1 parent f16727f commit 496ddbe

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

hack/cleanup_coding_workers.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ remove_worktree() {
8383

8484
if [ -d "$worktree_dir" ]; then
8585
log "Removing worktree: $worktree_dir"
86+
# Fix permissions before removal to handle any permission issues
87+
chmod -R 755 "$worktree_dir" 2>/dev/null || warn "Failed to fix permissions on $worktree_dir"
8688
git worktree remove --force "$worktree_dir" 2>/dev/null || {
8789
warn "Failed to remove worktree with git, removing directory manually"
8890
rm -rf "$worktree_dir"

0 commit comments

Comments
 (0)