Permalink
Browse files

Merge branch 'master' of github.com:bradfitz/batt

  • Loading branch information...
2 parents dab4d47 + 05100df commit 250a741e292a237b0d9cc013b99fcf41ccf31466 @bradfitz committed Apr 24, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 battc/battc.go
View
@@ -235,13 +235,14 @@ func env(gopath string) []string {
for i := len(s) - 1; i >= 0; i-- {
switch {
case strings.HasPrefix(s[i], "GOPATH="):
- s[i] = "GOPATH=" + gopath
case strings.HasPrefix(s[i], "GOBIN="):
- s[i] = s[len(s)-1]
- s = s[:len(s)-1]
+ default:
+ continue
}
+ s[i] = s[len(s)-1]
+ s = s[:len(s)-1]
}
- return s
+ return append(s, "GOPATH="+gopath)
}
func cpToTempFile(filename, tmpfilename string) (tmpfile string, err error) {

0 comments on commit 250a741

Please sign in to comment.