From 4532dd06d4a321a0ba99bc5e9b1b02142545d505 Mon Sep 17 00:00:00 2001 From: Julian Noble Date: Mon, 25 Aug 2025 00:29:51 +1000 Subject: [PATCH] multishell attempt to suppress 'pwsh' is not recognized message for when only powershell desktop available --- bin/getzig.cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/getzig.cmd b/bin/getzig.cmd index 3c94068d..c7297a15 100644 --- a/bin/getzig.cmd +++ b/bin/getzig.cmd @@ -181,7 +181,7 @@ set -- "$@" "a=[Hide <#;Hide set;S 1 list]"; set -- : "$@";$1 = @' @IF "!selected_shelltype_trimmed!"=="pwsh" ( REM pwsh vs powershell hasn't been tested because we didn't need to copy cmd to ps1 this time REM test availability of preferred option of powershell7+ pwsh - pwsh -nop -nol -c set-executionpolicy -Scope Process Unrestricted; write-host "statusmessage: pwsh-found" >NUL + @pwsh -nop -nol -c set-executionpolicy -Scope Process Unrestricted; write-host "statusmessage: pwsh-found" >NUL SET pwshtest_exitcode=!errorlevel! REM ECHO pwshtest_exitcode !pwshtest_exitcode! REM fallback to powershell if pwsh failed