Skip to content

Commit

Permalink
fix*yarnpkg-cli): properly handle missing physicalPath in runBinary
Browse files Browse the repository at this point in the history
  • Loading branch information
legobeat committed Jul 6, 2024
1 parent ea42c48 commit 8c31c0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/yarnpkg-cli/sources/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function runBinary(path: PortablePath) {
},
});
} else {
execFileSync(physicalPath, process.argv.slice(2), {
execFileSync(process.execPath, process.argv.slice(2), {
stdio: `inherit`,
env: {
...process.env,
Expand Down

0 comments on commit 8c31c0a

Please sign in to comment.