Skip to content

Conversation

@PetSerAl
Copy link
Contributor

@PetSerAl PetSerAl commented Jul 1, 2018

PR Summary

If this line:

$vcvarsallbatPath = (Get-ChildItem $vcPath -Filter vcvarsall.bat -Recurse -File | Select-Object -First 1).FullName

does not find any candidates for vcvarsall.bat, then it ends assign $null to $vcvarsallbatPath. Passing $null for -Path parameter will cause check to fail due to parameter validation. This PR adds explicit check for $null to fix this.

PR Checklist

Copy link
Collaborator

@iSazonov iSazonov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leave a comment

@daxian-dbw daxian-dbw merged commit b12dce2 into PowerShell:master Jul 2, 2018
@TravisEz13
Copy link
Member

@adityapatwardhan another change to port to the native repo.

@iSazonov
Copy link
Collaborator

iSazonov commented Jul 6, 2018

I suggest cut off and do changes only in https://github.com/PowerShell/PowerShell-Native

@adityapatwardhan
Copy link
Member

I agree, I will update the README file under libpsl-native and powershell-native folder accordingly.

@adityapatwardhan
Copy link
Member

Opened a PR for the README updates. #7248

@PetSerAl PetSerAl deleted the vcvarsall-check branch August 22, 2018 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants