Skip to content

Commit

Permalink
Merge pull request #4555 from ScoopInstaller/ps1-shim-patch
Browse files Browse the repository at this point in the history
feat(shim): ps1 shim hotfix
  • Loading branch information
rashil2000 authored Dec 2, 2021
2 parents ef4349b + 3c90d1a commit 6387b7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/core.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -615,9 +615,9 @@ set invalid=`"='
if !args! == !invalid! ( set args= )
where /q pwsh.exe
if %errorlevel% equ 0 (
pwsh -noprofile -ex unrestricted `"& '$resolved_path' $arg %args%;exit `$lastexitcode`"
pwsh -noprofile -ex unrestricted -command `"& '$resolved_path' $arg %args%;exit `$lastexitcode`"
) else (
powershell -noprofile -ex unrestricted `"& '$resolved_path' $arg %args%;exit `$lastexitcode`"
powershell -noprofile -ex unrestricted -command `"& '$resolved_path' $arg %args%;exit `$lastexitcode`"
)" | Out-File "$shim.cmd" -Encoding ASCII

warn_on_overwrite $shim $path
Expand Down

0 comments on commit 6387b7d

Please sign in to comment.