aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKen A. RedergÄrd <kenandr@gmail.com>2018-10-10 14:00:33 +0200
committerRobert Schumacher <roschuma@microsoft.com>2018-10-10 05:00:33 -0700
commitb357d2d0c3b828265d7d773f860807de309c4a97 (patch)
tree603f14e3c8f0a889df088f9402a065e7e704f8f7 /scripts
parentc7f30eca90ac2aea89f5a1b198878a2746c2b27c (diff)
downloadvcpkg-b357d2d0c3b828265d7d773f860807de309c4a97.tar.gz
vcpkg-b357d2d0c3b828265d7d773f860807de309c4a97.zip
Fix issue with compiling vcpkg.exe (#4149) (#4213)
* Fix issue with compiling vcpkg.exe (#4149) The check for environment variable PATH match other environment variables. When environment variable VCTargetsPath used by msbuild is changed in cleanEnvironmentHelper.ps1 the path is broken. This makes the compilation of vcpkg.exe fail. This commit fix the issue by checking that environment variable PATH is exactly PATH. * [cleanEnvironmentHelper] Use -eq instead of -match
Diffstat (limited to 'scripts')
-rw-r--r--scripts/cleanEnvironmentHelper.ps12
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/cleanEnvironmentHelper.ps1 b/scripts/cleanEnvironmentHelper.ps1
index 0a133f5f8..a3792ecd3 100644
--- a/scripts/cleanEnvironmentHelper.ps1
+++ b/scripts/cleanEnvironmentHelper.ps1
@@ -17,7 +17,7 @@ foreach ($name in $nameSet)
}
# PATH needs to be concatenated as it has values in both machine and user environment. Any other values should be set.
- if ($name -match 'path')
+ if ($name -eq 'path')
{
$pathValuePartial = @()
# Machine values before user values