mirror of
https://github.com/ScoopInstaller/Scoop.git
synced 2026-09-21 21:05:49 +00:00
Merge pull request #4555 from ScoopInstaller/ps1-shim-patch
feat(shim): ps1 shim hotfix
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user