From ef9b20ab6c98009a328c09570c451f85c9d55535 Mon Sep 17 00:00:00 2001 From: Le Roux Bodenstein Date: Tue, 24 Dec 2024 10:15:07 +0000 Subject: [PATCH] recursuvely list contents after copying --- packages/compass-e2e-tests/installers/mac-dmg.ts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/packages/compass-e2e-tests/installers/mac-dmg.ts b/packages/compass-e2e-tests/installers/mac-dmg.ts index 1888aa03da7..ee7000cd36f 100644 --- a/packages/compass-e2e-tests/installers/mac-dmg.ts +++ b/packages/compass-e2e-tests/installers/mac-dmg.ts @@ -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,