Fix dependency installation command arguments for 'bpm compile -d'

This commit is contained in:
EnumDev 2025-05-02 21:20:56 +03:00
parent 2e416b9e6f
commit 4f1eeeb11d

View File

@ -609,7 +609,9 @@ func resolveCommand() {
}
// Run 'bpm install' using the set privilege escalator command
cmd := exec.Command(bpmlib.BPMConfig.PrivilegeEscalatorCmd, executable, "install", "--installation-reason=dependency", strings.Join(unmetDepends, " "))
args := []string{executable, "install", "--installation-reason=dependency"}
args = append(args, unmetDepends...)
cmd := exec.Command(bpmlib.BPMConfig.PrivilegeEscalatorCmd, args...)
if yesAll {
cmd.Args = slices.Insert(cmd.Args, 3, "-y")
}