|
|
|
@ -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 |
|
|
|
|