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 7b8acdb commit ef9b20aCopy full SHA for ef9b20a
packages/compass-e2e-tests/installers/mac-dmg.ts
@@ -14,18 +14,16 @@ export async function installMacDMG(
14
15
await execute('hdiutil', ['attach', filepath]);
16
try {
17
- await execute(
18
- 'cp',
19
- ['-Rp', `"/Volumes/${appName}/${appName}.app"`, '/Applications'],
20
- { shell: true }
21
- );
+ await execute('cp', [
+ '-Rp',
+ `/Volumes/${appName}/${appName}.app`,
+ '/Applications',
+ ]);
22
} finally {
23
await execute('hdiutil', ['detach', `/Volumes/${appName}`]);
24
}
25
26
- if (!existsSync(`/Applications/${appName}.app/Contents/MacOS/${appName}`)) {
27
- throw new Error('app not found');
28
- }
+ await execute('ls', ['-laR', `/Applications/${appName}.app`]);
29
30
return Promise.resolve({
31
appName,
0 commit comments