Skip to content

Commit

Permalink
fixed an issue where an environment variable that ends in = would fai…
Browse files Browse the repository at this point in the history
…l to be read (#74)
  • Loading branch information
jamesnaftel authored Mar 10, 2020
1 parent ff7c5e9 commit 3a7c6ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
yb
.DS_Store
release
.vscode
2 changes: 1 addition & 1 deletion cli/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func (b *ExecCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{})
log.ActiveSection("Environment")
log.Infof("Setting environment variables...")
for _, property := range instructions.Exec.Environment["default"] {
s := strings.Split(property, "=")
s := strings.SplitN(property, "=", 2)
if len(s) == 2 {
buildData.SetEnv(s[0], s[1])
}
Expand Down

0 comments on commit 3a7c6ae

Please sign in to comment.