Skip to content

Commit

Permalink
Added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jkutner committed May 9, 2019
1 parent 8202cff commit 50f401d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions exports.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ func ParseExportsFileLine(line string) (bool, string, string) {
export := strings.Split(components[0], " ")
if strings.TrimSpace(export[0]) == "export" {
val := strings.TrimSpace(components[1])

// Ideally we'd eval, but we don't want to eval things like $PATH embedded in the val
if string(val[0]) == "\"" && string(val[len(val)-1]) == "\"" {
val = val[1: len(val)-1]
}
Expand Down

0 comments on commit 50f401d

Please sign in to comment.