Update StackMonkey.ps1
This commit is contained in:
@@ -165,9 +165,6 @@ if ($gallery.InstallationPolicy -ne 'Trusted') {
|
|||||||
Write-Host "PSGallery marked as Trusted" -ForegroundColor Green
|
Write-Host "PSGallery marked as Trusted" -ForegroundColor Green
|
||||||
}
|
}
|
||||||
|
|
||||||
# …and only *after* this completes* do you Start-Server…
|
|
||||||
Write-Host "Starting ScriptMonkey UI on http://localhost:$Port/" -ForegroundColor Cyan
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
@@ -1562,15 +1559,6 @@ function Start-Server {
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
# Only launch the UI if we're in the default UI parameter set
|
|
||||||
if ($PSCmdlet.ParameterSetName -eq 'UI') {
|
|
||||||
# now that $Port is defined, show it properly:
|
|
||||||
Write-Host "Starting ScriptMonkey UI on http://localhost:$Port/" -ForegroundColor Cyan
|
|
||||||
Start-Process "msedge.exe" -ArgumentList "--app=http://localhost:$Port"
|
|
||||||
Start-Server # this will block until you hit Exit
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
# At the end of ScriptMonkey.ps1
|
# At the end of ScriptMonkey.ps1
|
||||||
if ($MyInvocation.ExpectingInput) {
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
|||||||
Reference in New Issue
Block a user