forked from osmocom/wireshark
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>
This commit is contained in:
parent
f92f16916a
commit
74e8b539a2
|
@ -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"
|
||||
Set-Content -Path $tagFile -Value "$CurrentTag"
|
||||
|
|
Loading…
Reference in New Issue