mirror of
https://github.com/golang/go
synced 2024-11-25 10:27:57 -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:
parent
04450d8a26
commit
e8c970e5f7
@ -902,7 +902,7 @@ func isObject(s string) bool {
|
|||||||
//
|
//
|
||||||
func (b *builder) fmtcmd(dir string, format string, args ...interface{}) string {
|
func (b *builder) fmtcmd(dir string, format string, args ...interface{}) string {
|
||||||
cmd := fmt.Sprintf(format, args...)
|
cmd := fmt.Sprintf(format, args...)
|
||||||
if dir != "" {
|
if dir != "" && dir != "/" {
|
||||||
cmd = strings.Replace(" "+cmd, " "+dir, " .", -1)[1:]
|
cmd = strings.Replace(" "+cmd, " "+dir, " .", -1)[1:]
|
||||||
if b.scriptDir != dir {
|
if b.scriptDir != dir {
|
||||||
b.scriptDir = dir
|
b.scriptDir = dir
|
||||||
|
Loading…
Reference in New Issue
Block a user