Skip to content

Commit

Permalink
Update run.ps1
Browse files Browse the repository at this point in the history
Go back to asking user if they want to exit
  • Loading branch information
starchyunderscore authored Oct 15, 2023
1 parent f274e49 commit 938aa07
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion current/run.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,8 @@ if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]:
# Tell the user not to use an admin powershell window
Write-Output "You shouldn't run the script in an admin Powershell window. Anything that needs admin will self-elevate."
}
exit
# Ask if user wants to exit powershell
$leave = $Host.UI.PromptForChoice("Exit powershell window?", "", @("&Yes", "&No"), 0)
if ($leave -eq 0) {
exit
}

0 comments on commit 938aa07

Please sign in to comment.