Skip to content

Commit

Permalink
Fix macos path.
Browse files Browse the repository at this point in the history
  • Loading branch information
q-uint committed Mar 17, 2024
1 parent c6a790d commit 274b2bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function run() {
core.addPath(`/home/runner/.local/share/dfx/bin`);
}
else {
core.addPath(`/usr/Library/Application Support/org.dfinity.dfx/bin`);
core.addPath(`/Users/runner/Library/Application\ Support/org.dfinity.dfx/bin`);
}
// Install dfx.
child_process_1.default.execSync(`sh -ci "$(curl -fsSL https://internetcomputer.org/install.sh)"`);
Expand Down
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ export async function run() {
// Breaking change since dfx 0.17.0...
core.exportVariable('DFXVM_INIT_YES', 'true');
if (os.platform() === 'linux') {
core.addPath(`/home/runner/.local/share/dfx/bin`)
core.addPath("/home/runner/.local/share/dfx/bin")
} else {
core.addPath(`/usr/Library/Application Support/org.dfinity.dfx/bin`);
core.addPath("/Users/runner/Library/Application\ Support/org.dfinity.dfx/bin");
}

// Install dfx.
Expand Down

0 comments on commit 274b2bc

Please sign in to comment.