We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0934c6 commit 1c77502Copy full SHA for 1c77502
packages/compass-e2e-tests/installers/mac-dmg.ts
@@ -10,7 +10,10 @@ export async function installMacDMG(
10
const fullDestinationPath = `/Applications/${appName}.app`;
11
12
if (existsSync(fullDestinationPath)) {
13
- throw new Error(`${fullDestinationPath} already exists`);
+ // 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]);
17
}
18
19
await execute('hdiutil', ['attach', filepath]);
0 commit comments