Skip to content

Commit

Permalink
fix: drop bash dependency to run verification hooks in favor of plain…
Browse files Browse the repository at this point in the history
… shell
  • Loading branch information
RaVbaker committed Mar 23, 2021
1 parent 3a847d7 commit ae6d10e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/hooks/local_hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type LocalHook struct {
func (l *LocalHook) Run(path string) error {
cmd := templateString(path, l.Command)
fmt.Printf("> %s\n", cmd)
out, err := exec.Command("bash", "-c", cmd).CombinedOutput()
out, err := exec.Command("sh", "-c", cmd).CombinedOutput()
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion internal/verification/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func Run(cmdToRun, pathsArg, s3VersionID, gitBranchName string, cmd, pullCmd, su
cmdToRun = strings.ReplaceAll(cmdToRun, pathPattern, filename)

fmt.Printf("Executing command: `%s`\n\n", cmdToRun)
runCmd := exec.Command("bash", "-c", cmdToRun)
runCmd := exec.Command("sh", "-c", cmdToRun)
runCmd.Stdout = os.Stdout
runCmd.Stderr = os.Stderr
runErr := runCmd.Run()
Expand Down

0 comments on commit ae6d10e

Please sign in to comment.