Skip to content

Commit

Permalink
trying to fix mac tests
Browse files Browse the repository at this point in the history
  • Loading branch information
emilwareus committed Sep 26, 2023
1 parent d77629f commit 0d854f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/resolution/pm/nuget/testdata/cmd_factory_mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0d854f2

Please sign in to comment.