Skip to content

Commit 1c77502

Browse files
committed
the app might already exist
1 parent a0934c6 commit 1c77502

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/compass-e2e-tests/installers/mac-dmg.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ export async function installMacDMG(
1010
const fullDestinationPath = `/Applications/${appName}.app`;
1111

1212
if (existsSync(fullDestinationPath)) {
13-
throw new Error(`${fullDestinationPath} already exists`);
13+
// Would ideally just throw here, but unfortunately in CI the mac
14+
// environments aren't all clean so somewhere we have to remove it anyway.
15+
console.log(`${fullDestinationPath} already exists. Removing.`);
16+
await execute('rm', ['-rf', fullDestinationPath]);
1417
}
1518

1619
await execute('hdiutil', ['attach', filepath]);

0 commit comments

Comments
 (0)