Skip to content

Commit 943e33f

Browse files
committed
fix: ignore missing file if already deleted
1 parent 0f7ff8f commit 943e33f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

scripts/rebrander.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,11 @@ const updatePublishFlow = name => {
130130
updatePublishFlow("publish.yml");
131131
updatePublishFlow("manual-publish.yml");
132132

133-
fs.unlinkSync(path.resolve(workflowsPath, "setup.yml"));
134-
133+
try {
134+
fs.unlinkSync(path.resolve(workflowsPath, "setup.yml"));
135+
} catch {
136+
// empty
137+
}
135138
const docsWorkflowPath = path.resolve(workflowsPath, "docs.yml");
136139
fs.writeFileSync(
137140
docsWorkflowPath,

0 commit comments

Comments
 (0)