Skip to content

Commit ef9b20a

Browse files
committed
recursuvely list contents after copying
1 parent 7b8acdb commit ef9b20a

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

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

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,16 @@ export async function installMacDMG(
1414

1515
await execute('hdiutil', ['attach', filepath]);
1616
try {
17-
await execute(
18-
'cp',
19-
['-Rp', `"/Volumes/${appName}/${appName}.app"`, '/Applications'],
20-
{ shell: true }
21-
);
17+
await execute('cp', [
18+
'-Rp',
19+
`/Volumes/${appName}/${appName}.app`,
20+
'/Applications',
21+
]);
2222
} finally {
2323
await execute('hdiutil', ['detach', `/Volumes/${appName}`]);
2424
}
2525

26-
if (!existsSync(`/Applications/${appName}.app/Contents/MacOS/${appName}`)) {
27-
throw new Error('app not found');
28-
}
26+
await execute('ls', ['-laR', `/Applications/${appName}.app`]);
2927

3028
return Promise.resolve({
3129
appName,

0 commit comments

Comments
 (0)