Skip to content

Commit 04686b8

Browse files
authored
fix(deploy/w3c): don't crash if file is already named Overview.html (#183)
The -n flag in mv stands for "no clobber".
1 parent e690b1b commit 04686b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/deploy-w3c-echidna.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,12 @@ async function publish(input: Input, buildOutput: BuildResult) {
9797
const { wgDecisionURL: decision, token, cc, repository } = input;
9898
const annotation = `triggered by auto-publish spec-prod action on ${repository}`;
9999
const tarFileName = "/tmp/echidna.tar";
100-
await sh(`mv ${file} Overview.html`, { cwd: outputDir });
100+
await sh(`mv -n ${file} Overview.html`, { cwd: outputDir });
101101
await sh(`tar cvf ${tarFileName} *`, {
102102
output: "stream",
103103
cwd: outputDir,
104104
});
105-
await sh(`mv Overview.html ${file}`, { cwd: outputDir });
105+
await sh(`mv -n Overview.html ${file}`, { cwd: outputDir });
106106

107107
let command = `curl '${API_URL}'`;
108108
// command += ` -F "dry-run=true"`;

0 commit comments

Comments
 (0)