Skip to content

Commit

Permalink
Merge pull request #1982 from buildkite/revert-1974-triarius/less-bash
Browse files Browse the repository at this point in the history
Revert "Use sh instead of bash in RunScript"
  • Loading branch information
DrJosh9000 authored Feb 27, 2023
2 parents 4911ba0 + a21f11b commit 8828452
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

### Changed
- Upstart is no longer supported [#1946](https://github.com/buildkite/agent/pull/1946) (@sj26)
- For increased compatibility with various container images, `sh` is used instead of `bash` [#1974](https://github.com/buildkite/agent/pull/1974) (@triarius)
- `pipeline upload` internally uses a new asynchronous upload flow, reducing the number of connections held open [#1927](https://github.com/buildkite/agent/pull/1927) (@triarius)
- Faster failure when trying to `pipeline upload` a malformed pipeline [#1963](https://github.com/buildkite/agent/pull/1963) (@triarius)
- Better errors when config loading fails [#1937](https://github.com/buildkite/agent/pull/1937) (@moskyb)
Expand Down
2 changes: 1 addition & 1 deletion bootstrap/shell/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ func (s *Shell) RunScript(ctx context.Context, path string, extra env.Environmen
args = []string{"-file", path}

case !isWindows && isBash:
bashPath, err := s.AbsolutePath("sh")
bashPath, err := s.AbsolutePath("bash")
if err != nil {
return fmt.Errorf("Error finding bash, needed to run scripts: %v.", err)
}
Expand Down

0 comments on commit 8828452

Please sign in to comment.