From 384d2e3c835fde68b5b896632cf4564c7ad51c76 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Tue, 7 Aug 2018 13:44:00 +1000 Subject: [PATCH] use sh instead of bash --- gitcommands.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gitcommands.go b/gitcommands.go index 71e737a6e..31615a346 100644 --- a/gitcommands.go +++ b/gitcommands.go @@ -116,7 +116,7 @@ func runDirectCommand(command string) (string, error) { commandLog(command) cmdOut, err := exec. - Command("bash", "-c", command). + Command("sh", "-c", command). CombinedOutput() devLog("run direct command time for command: ", command, time.Now().Sub(timeStart)) return sanitisedCommandOutput(cmdOut, err) @@ -174,7 +174,7 @@ func branchFromLine(line string, index int) Branch { func getGitBranches() []Branch { branches := make([]Branch, 0) // check if there are any branches - branchCheck, _ := runDirectCommand("git branch") + branchCheck, _ := runCommand("git branch") if branchCheck == "" { return append(branches, branchFromLine("master", 0)) }