Revert "Update setup.ps1"

This reverts commit 7a359a55d0.
This commit is contained in:
Harry Herring 2020-12-01 19:20:35 +00:00
parent 7a359a55d0
commit d788236304

View file

@ -16,13 +16,13 @@ function Get-Choice-From-Options {
} }
Write-Host "$($Options.length + 1)) Quit" Write-Host "$($Options.length + 1)) Quit"
$selection = (Read-Host $Prompt) -as [int] $selection = Read-Host $Prompt
if ($selection -eq $Options.length + 1) { if ($selection -eq $Options.length + 1) {
Write-Host "Goodbye!" Write-Host "Goodbye!"
exit 1 exit 1
} }
elseif ($selection -le $Options.length -and $selection -gt 0) { elseif ($selection -le $Options.length) {
$choice = $($selection - 1) $choice = $($selection - 1)
break break
} }