Skip to content

Commit

Permalink
fix search order
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound committed Apr 11, 2018
1 parent de2929c commit 03864c8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/maker/appx/src/MakerAppX.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ import getNameFromAuthor from './util/author-name';
// but if we're running in a 32-bit node.js process, we're going to
// be Wow64 redirected
const windowsSdkPaths = [
'C:\\Program Files\\Windows Kits\\10\\bin\\x64',
'C:\\Program Files (x86)\\Windows Kits\\10\\bin\\x64',
'C:\\Program Files\\Windows Kits\\10\\bin\\x64'
];

async function findSdkTool(exe) {
let sdkTool
let sdkTool;
for (const testPath of windowsSdkPaths) {
if (await fs.exists(testPath)) {
let testExe = path.resolve(testPath, exe);
Expand All @@ -27,8 +27,8 @@ async function findSdkTool(exe) {
}
const topDir = path.dirname(testPath);
for (const subVersion of await fs.readdir(topDir)) {
if (!(await fs.stat(path.resolve(topDir, subVersion))).isDirectory()) continue;
if (subVersion.substr(0, 2) !== '10') continue;
if (!(await fs.stat(path.resolve(topDir, subVersion))).isDirectory()) continue; // eslint-disable-line no-continue
if (subVersion.substr(0, 2) !== '10') continue; // eslint-disable-line no-continue

testExe = path.resolve(topDir, subVersion, 'x64', 'makecert.exe');
if (await fs.exists(testExe)) {
Expand Down

0 comments on commit 03864c8

Please sign in to comment.