diff --git a/internal/resolution/pm/nuget/testdata/cmd_factory_mock.go b/internal/resolution/pm/nuget/testdata/cmd_factory_mock.go index 2bec7f13..7c10977d 100644 --- a/internal/resolution/pm/nuget/testdata/cmd_factory_mock.go +++ b/internal/resolution/pm/nuget/testdata/cmd_factory_mock.go @@ -23,11 +23,11 @@ func (f CmdFactoryMock) MakeInstallCmd(command string, file string) (*exec.Cmd, cmd := exec.Command(f.InstallCmdName) if f.CmdError != nil { - cmd = exec.Command("sh", "-c", f.InstallCmdName+" && exit 1") + cmd = exec.Command("/bin/bash", "-c", f.InstallCmdName+" && exit 1") } if f.CmdOutput != nil { - cmd = exec.Command("sh", "-c", "echo -n \""+string(f.CmdOutput)+"\" && exit 1") + cmd = exec.Command("/bin/bash", "-c", "echo -n \""+string(f.CmdOutput)+"\" && exit 1") } return cmd, nil