diff --git a/.bin/Scripts/build_kit.ps1 b/.bin/Scripts/build_kit.ps1 index 778c6bb8..25373389 100644 --- a/.bin/Scripts/build_kit.ps1 +++ b/.bin/Scripts/build_kit.ps1 @@ -34,7 +34,7 @@ function DownloadFile ($Path, $Name, $Url) { } catch { Write-Host (" ERROR: Failed to download file." ) -ForegroundColor "Red" - $DownloadErrors += 1 + $global:DownloadErrors += 1 } } function FindDynamicUrl ($SourcePage, $RegEx) { diff --git a/.bin/Scripts/build_pe.ps1 b/.bin/Scripts/build_pe.ps1 index a040a207..e5a92de3 100644 --- a/.bin/Scripts/build_pe.ps1 +++ b/.bin/Scripts/build_pe.ps1 @@ -70,7 +70,7 @@ function DownloadFile ($Path, $Name, $Url) { } catch { Write-Host (" ERROR: Failed to download file." ) -ForegroundColor "Red" - $DownloadErrors += 1 + $global:DownloadErrors += 1 } } function FindDynamicUrl ($SourcePage, $RegEx) {