From d29ba4fe7ef8be0a88c17a675f18e04bef75acf8 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Fri, 22 Jan 2021 03:01:02 -0500 Subject: [PATCH] fix: error when unable to source script --- basher.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/basher.go b/basher.go index c729142..2edb82b 100644 --- a/basher.go +++ b/basher.go @@ -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()