Skip to content

Commit

Permalink
do not exit but return
Browse files Browse the repository at this point in the history
  • Loading branch information
jpawlowski committed Aug 26, 2024
1 parent bf62e28 commit 8c748a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/powershell-extended/Install-NerdFont.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ begin {
$Name = Show-Menu -Options $allNerdFonts
if ($Name -eq 'quit') {
Write-Host "Selection process canceled."
exit
return
}
} while (-not $Name)

Expand All @@ -587,7 +587,7 @@ begin {
}
else {
Write-Host 'No font selected.'
exit
return
}
}
elseif ($PSBoundParameters.Name) {
Expand Down

0 comments on commit 8c748a0

Please sign in to comment.