Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const path = require('path');

// Variable
const archx64 = arch() === 'x64';
const sysroot = process.env['systemroot'] || process.env['windir'];
const sysroot = process.env['SYSTEMROOT'] || process.env['WINDIR'];
const cscript32 = path.join(sysroot, archx64 ? 'SysWOW64' : 'System32', 'cscript.exe');
const cscript64 = path.join(sysroot, 'System32/cscript.exe');

Expand All @@ -21,7 +21,7 @@ const cscript64 = path.join(sysroot, 'System32/cscript.exe');
* @param {boolean} x64
* @returns {string}
*/
module.exports = x64 => {
module.exports = (x64) => {
if (x64) return cscript64;

return cscript32;
Expand Down