Skip to content

Commit

Permalink
recursuvely list contents after copying
Browse files Browse the repository at this point in the history
  • Loading branch information
lerouxb committed Dec 24, 2024
1 parent 7b8acdb commit ef9b20a
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions packages/compass-e2e-tests/installers/mac-dmg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,16 @@ export async function installMacDMG(

await execute('hdiutil', ['attach', filepath]);
try {
await execute(
'cp',
['-Rp', `"/Volumes/${appName}/${appName}.app"`, '/Applications'],
{ shell: true }
);
await execute('cp', [
'-Rp',
`/Volumes/${appName}/${appName}.app`,
'/Applications',
]);
} finally {
await execute('hdiutil', ['detach', `/Volumes/${appName}`]);
}

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

return Promise.resolve({
appName,
Expand Down

0 comments on commit ef9b20a

Please sign in to comment.