Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit d2d6a42

Browse files
authored
[install_cli] fix install_cli.ps1 windows exit (#910)
fix install_cli.ps1 windows exit
1 parent 9d83a84 commit d2d6a42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/nextra/public/scripts/install_cli.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ function Main {
154154
$currentVersion = (& $cliPath --version | Select-String -Pattern '\d+\.\d+\.\d+').Matches.Value
155155
if ($currentVersion -eq $VERSION) {
156156
Write-ColorMessage -Color $YELLOW -Message "Aptos CLI version $VERSION is already installed."
157-
exit 0
157+
return
158158
}
159159
}
160160

@@ -176,7 +176,7 @@ function Main {
176176
}
177177
else {
178178
Write-ColorMessage -Color $RED -Message "There was a problem with the installation."
179-
exit 1
179+
return
180180
}
181181
}
182182

0 commit comments

Comments
 (0)