mirror of
https://github.com/ScoopInstaller/Scoop.git
synced 2026-05-03 16:21:38 +00:00
fix(shim): Specify command arg for bash - fix #3878
This commit is contained in:
+2
-2
@@ -624,9 +624,9 @@ if %errorlevel% equ 0 (
|
||||
"#!/bin/sh
|
||||
# $resolved_path
|
||||
if command -v pwsh.exe &> /dev/null; then
|
||||
pwsh.exe -noprofile -ex unrestricted `"$resolved_path`" $arg `"$@`"
|
||||
pwsh.exe -noprofile -ex unrestricted -command `"& '$resolved_path' $arg $@;exit \`$lastexitcode`"
|
||||
else
|
||||
powershell.exe -noprofile -ex unrestricted `"$resolved_path`" $arg `"$@`"
|
||||
powershell.exe -noprofile -ex unrestricted -command `"& '$resolved_path' $arg $@;exit \`$lastexitcode`"
|
||||
fi" | Out-File $shim -Encoding ASCII
|
||||
} elseif ($path -match '\.jar$') {
|
||||
warn_on_overwrite "$shim.cmd" $path
|
||||
|
||||
Reference in New Issue
Block a user