Skip to content

Commit 331969c

Browse files
fix: use process.execPath rather than relying on 'node' being on the PATH
Co-authored-by: Samuel Attard <[email protected]>
1 parent c8f89cc commit 331969c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/e-auto-update.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ function checkForUpdates() {
123123
if (headBefore === git(headCmd)) {
124124
console.log('build-tools is up-to-date');
125125
} else {
126-
console.log(color.childExec('node', [yarnPath, '--immutable'], execOpts));
127-
cp.spawnSync('node', [yarnPath, '--immutable'], execOpts);
126+
console.log(color.childExec(process.execPath, [yarnPath, '--immutable'], execOpts));
127+
cp.spawnSync(process.execPath, [yarnPath, '--immutable'], execOpts);
128128
console.log('build-tools updated to latest version!');
129129
}
130130
} catch (e) {

0 commit comments

Comments
 (0)