Skip to content

Commit f2b25fe

Browse files
authored
fix: do not rely on $PATH when resolving executables (#5475)
Since CRON jobs reset $PATH to a very basic one, we should use only direct paths to system executables. Fixes #5469
1 parent 6b40d75 commit f2b25fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/registry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export const hostPlatform = ((): BrowserPlatform => {
136136
let arm64 = false;
137137
// BigSur is the first version that might run on Apple Silicon.
138138
if (major >= 11) {
139-
arm64 = execSync('sysctl -in hw.optional.arm64', {
139+
arm64 = execSync('/usr/sbin/sysctl -in hw.optional.arm64', {
140140
stdio: ['ignore', 'pipe', 'ignore']
141141
}).toString().trim() === '1';
142142
}

0 commit comments

Comments
 (0)