Skip to content

Commit 884b5f1

Browse files
committed
Update upstream scripts
1 parent d908196 commit 884b5f1

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎.scripts/powershell.ps1‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ if ($env:MOONBIT_INSTALL_DEV) {
3535

3636
$CoreUri = "$CLI_MOONBIT/cores/core-$Version.zip"
3737

38+
$oldPreference = $ProgressPreference
39+
$ProgressPreference = 'SilentlyContinue'
3840

3941
try {
4042
if (-not (Test-Path -Path $MoonHome -PathType Container)) {
@@ -77,8 +79,11 @@ try {
7779
$env:PATH = $OldPath
7880

7981
Pop-Location
82+
83+
$ProgressPreference = $oldPreference
8084
}
8185
catch {
86+
$ProgressPreference = $oldPreference
8287
Write-Output "Install Failed:"
8388
Write-Output $_.Exception.Message
8489
exit 1

0 commit comments

Comments
 (0)