Skip to content

Commit

Permalink
- Fixed issue with souring of invalid scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristoffer Ahl committed Apr 4, 2020
1 parent ceaad4f commit fe086ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pkg/shell/bash.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (s *BashScript) FullPath() string {

// FunctionNames returns functions in declared in the script
func (s *BashScript) FunctionNames() ([]string, error) {
callArgs := []string{"-c", fmt.Sprintf("source %s; declare -F", s.FullPath())}
callArgs := []string{"-c", fmt.Sprintf("set -e; source %s; declare -F", s.FullPath())}

io, buf := io.BufferedCombined()

Expand Down

0 comments on commit fe086ea

Please sign in to comment.