Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use uppercase env variable names #469

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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