Skip to content

Commit

Permalink
use sh instead of bash
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseduffield committed Aug 7, 2018
1 parent a4f4a16 commit 384d2e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gitcommands.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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))
}
Expand Down

0 comments on commit 384d2e3

Please sign in to comment.