1
0
mirror of https://github.com/golang/go synced 2024-11-21 21:04:41 -07:00

cmd/go: fix verbose command displaying

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5715050
This commit is contained in:
Gustavo Niemeyer 2012-03-01 20:14:21 -03:00
parent 04450d8a26
commit e8c970e5f7

View File

@ -902,7 +902,7 @@ func isObject(s string) bool {
//
func (b *builder) fmtcmd(dir string, format string, args ...interface{}) string {
cmd := fmt.Sprintf(format, args...)
if dir != "" {
if dir != "" && dir != "/" {
cmd = strings.Replace(" "+cmd, " "+dir, " .", -1)[1:]
if b.scriptDir != dir {
b.scriptDir = dir