Skip to content

Commit 3c90d1a

Browse files
committed
specify command arg
1 parent ef4349b commit 3c90d1a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/core.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -615,9 +615,9 @@ set invalid=`"='
615615
if !args! == !invalid! ( set args= )
616616
where /q pwsh.exe
617617
if %errorlevel% equ 0 (
618-
pwsh -noprofile -ex unrestricted `"& '$resolved_path' $arg %args%;exit `$lastexitcode`"
618+
pwsh -noprofile -ex unrestricted -command `"& '$resolved_path' $arg %args%;exit `$lastexitcode`"
619619
) else (
620-
powershell -noprofile -ex unrestricted `"& '$resolved_path' $arg %args%;exit `$lastexitcode`"
620+
powershell -noprofile -ex unrestricted -command `"& '$resolved_path' $arg %args%;exit `$lastexitcode`"
621621
)" | Out-File "$shim.cmd" -Encoding ASCII
622622

623623
warn_on_overwrite $shim $path

0 commit comments

Comments
 (0)