with open("cli/src/commands/worktree.ts", "r") as f: content = f.read() content = content.replace("if (!existsSync(sourceDir) || !statSync(sourceDir).isDirectory()) return false;", "if (!existsSync(sourceDir)) return false;\n if (!statSync(sourceDir).isDirectory()) return false;") with open("cli/src/commands/worktree.ts", "w") as f: f.write(content)