Skip to content

Commit 7ba7ac4

Browse files
Add more logs
1 parent 6799ff3 commit 7ba7ac4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

dist/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88260,9 +88260,9 @@ class MacOSInstaller extends CliInstaller {
8826088260
await super.install(downloadUrl);
8826188261
return;
8826288262
}
88263-
core.info("Installing 1Password CLI using MacOS .pkg installer");
88264-
const pkgPath = await tool_cache.downloadTool(downloadUrl);
88265-
const { stderr } = await execAsync(`sudo installer -pkg ${pkgPath}/op_apple_universal_${this.version}.pkg -target /`);
88263+
const downloadPath = await tool_cache.downloadTool(downloadUrl);
88264+
core.info(`Installing 1Password CLI using MacOS .pkg installer: ${downloadPath}`);
88265+
const { stderr } = await execAsync(`sudo installer -pkg ${downloadPath}/op_apple_universal_${this.version}.pkg -target /`);
8826688266
if (stderr) {
8826788267
core.error(stderr);
8826888268
throw new Error(`Failed to install 1Password CLI: ${stderr}`);

src/cli-installer/macos.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ export class MacOSInstaller extends CliInstaller implements Installer {
6666
return;
6767
}
6868

69-
core.info("Installing 1Password CLI using MacOS .pkg installer");
70-
const pkgPath = await tc.downloadTool(downloadUrl);
69+
const downloadPath = await tc.downloadTool(downloadUrl);
70+
core.info(`Installing 1Password CLI using MacOS .pkg installer: ${downloadPath}`);
7171
const { stderr } = await execAsync(
72-
`sudo installer -pkg ${pkgPath}/op_apple_universal_${this.version}.pkg -target /`,
72+
`sudo installer -pkg ${downloadPath}/op_apple_universal_${this.version}.pkg -target /`,
7373
);
7474
if (stderr) {
7575
core.error(stderr);

0 commit comments

Comments
 (0)