aboutsummaryrefslogtreecommitdiffstats
path: root/tools/win-setup.ps1
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2016-08-16 12:25:55 -0700
committerGerald Combs <gerald@wireshark.org>2016-08-17 21:41:10 +0000
commit74e8b539a22043869186ca1af46ba796a5378225 (patch)
tree0e917e92eef2cbc6fc1f1691eed1c379c2eb5971 /tools/win-setup.ps1
parentf92f16916a8d84758c52fc014dbbc3cf36a59d44 (diff)
Fix a comparison in win-setup.ps1
"if ($SomeVariable > 0)" is valid PowerShell syntax, but it writes the value of $SomeVariable to a file named "0". Use the "-gt" operator instead. Change-Id: I17e0f7033008ead3b24fed8c0c91869747ff81f1 Reviewed-on: https://code.wireshark.org/review/17093 Petri-Dish: Gerald Combs <gerald@wireshark.org> Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'tools/win-setup.ps1')
-rw-r--r--tools/win-setup.ps14
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/win-setup.ps1 b/tools/win-setup.ps1
index 166447fc02..ba15529bf5 100644
--- a/tools/win-setup.ps1
+++ b/tools/win-setup.ps1
@@ -287,7 +287,7 @@ function DownloadArchive($fileName, $subDir) {
Set-Variable -Name SevenZOut
$bbStatus = $LASTEXITCODE
Write-Progress -Activity "$activity" -Status "Done" -Completed
- if ($bbStatus > 0) {
+ if ($bbStatus -gt 0) {
Write-Output $SevenZOut
exit 1
}
@@ -339,4 +339,4 @@ foreach ($item in $Archives.GetEnumerator() | Sort-Object -property key) {
}
# Save our last known state
-Set-Content -Path $tagFile -Value "$CurrentTag" \ No newline at end of file
+Set-Content -Path $tagFile -Value "$CurrentTag"