Skip to content

Commit

Permalink
Merge pull request #33 from progrium/error-early
Browse files Browse the repository at this point in the history
fix: error when unable to source script
  • Loading branch information
josegonzalez authored Jan 22, 2021
2 parents 9ffba79 + d29ba4f commit 2b4aa33
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion basher.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ func ApplicationWithPath(
}

for _, script := range scripts {
bash.Source(script, loader)
if err := bash.Source(script, loader); err != nil {
log.Fatal(err)
}
}
if copyEnv {
bash.CopyEnv()
Expand Down

0 comments on commit 2b4aa33

Please sign in to comment.