helper function for finding sh

This commit is contained in:
vilmibm 2020-07-15 11:30:20 -05:00
parent a9d93f8c57
commit acaaa28fd7
2 changed files with 34 additions and 16 deletions

View file

@ -195,7 +195,7 @@ aliases:
t.Fatalf("unexpected error: %s", err)
}
expected := []string{"sh", "-c", "gh issue list | grep cool"}
expected := []string{"/usr/bin/sh", "-c", "gh issue list | grep cool"}
assert.Equal(t, expected, expanded)
}
@ -218,7 +218,7 @@ aliases:
t.Fatalf("unexpected error: %s", err)
}
expected := []string{"sh", "-c", "gh issue list --label=$1 | grep", "--", "bug", "foo"}
expected := []string{"/usr/bin/sh", "-c", "gh issue list --label=$1 | grep", "--", "bug", "foo"}
assert.Equal(t, expected, expanded)
}