File size: 363 Bytes
029d2df
 
 
 
 
 
 
1
2
3
4
5
6
7
8
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)