Skip to content

Commit 7e82953

Browse files
jrob5756Jason Robert
andauthored
fix: use return instead of exit in install.ps1 to avoid killing session (#61)
Co-authored-by: Jason Robert <jasonrobert@microsoft.com>
1 parent c76c40e commit 7e82953

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

install.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ $existingConductor = Get-Command conductor -ErrorAction SilentlyContinue
6262
if ($existingConductor) {
6363
$currentVersion = $null
6464
try {
65-
$versionOutput = conductor --version 2>$null
65+
$versionOutput = (conductor --version 2>&1) | Out-String
6666
if ($versionOutput -match '(\d+\.\d+\.\d+[^ ]*)') {
6767
$currentVersion = $Matches[1]
6868
}
@@ -75,7 +75,7 @@ if ($existingConductor) {
7575
Write-Host ""
7676
Write-Host " Run 'conductor --help' to get started."
7777
Write-Host ""
78-
exit 0
78+
return
7979
}
8080
Write-Info "Upgrading Conductor: v$currentVersion$tagName"
8181
}

0 commit comments

Comments
 (0)