We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef4349b commit 3c90d1aCopy full SHA for 3c90d1a
1 file changed
lib/core.ps1
@@ -615,9 +615,9 @@ set invalid=`"='
615
if !args! == !invalid! ( set args= )
616
where /q pwsh.exe
617
if %errorlevel% equ 0 (
618
- pwsh -noprofile -ex unrestricted `"& '$resolved_path' $arg %args%;exit `$lastexitcode`"
+ pwsh -noprofile -ex unrestricted -command `"& '$resolved_path' $arg %args%;exit `$lastexitcode`"
619
) else (
620
- powershell -noprofile -ex unrestricted `"& '$resolved_path' $arg %args%;exit `$lastexitcode`"
+ powershell -noprofile -ex unrestricted -command `"& '$resolved_path' $arg %args%;exit `$lastexitcode`"
621
)" | Out-File "$shim.cmd" -Encoding ASCII
622
623
warn_on_overwrite $shim $path
0 commit comments