From 86625753b174733ec7311775de1b22c68a881ddb Mon Sep 17 00:00:00 2001 From: Stephan Yelle Date: Mon, 23 Jun 2025 00:25:31 -0400 Subject: [PATCH] Update StackMonkey.ps1 --- StackMonkey.ps1 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/StackMonkey.ps1 b/StackMonkey.ps1 index 0a8ed09..2c2c834 100644 --- a/StackMonkey.ps1 +++ b/StackMonkey.ps1 @@ -1383,8 +1383,7 @@ if (-not $SilentInstall) { Start-Server } -# Only auto-invoke if the user actually passed parameters -if ($PSBoundParameters.Count -gt 0) { +# At the end of ScriptMonkey.ps1 +if ($MyInvocation.ExpectingInput) { Invoke-ScriptMonkey @PSBoundParameters } -