mirror of
https://github.com/ScoopInstaller/Scoop.git
synced 2026-05-03 08:11:08 +00:00
specify command arg
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