commit | 73957cf94c753f0957a65991f680a1eb9f925919 | [log] [tgz] |
---|---|---|
author | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | Fri Jun 05 09:19:37 2015 +0900 |
committer | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | Fri Jun 05 09:20:25 2015 +0900 |
tree | 49fdadcc42c2ccc87d17f7ba0c0e5e6afcc6c2c9 | |
parent | 07a9380c3df58d083ddbdeb8de371a57bab637a2 [diff] [blame] |
Do not output extra whitespaces by wildcard with ..
diff --git a/func.go b/func.go index 36c1433..6bc9133 100644 --- a/func.go +++ b/func.go
@@ -451,7 +451,9 @@ } // Ignore errors. out, _ := cmd.Output() - sw.Write(formatCommandOutput(out)) + if len(trimSpaceBytes(out)) > 0 { + sw.Write(formatCommandOutput(out)) + } } else { files, err := filepath.Glob(string(ws.Bytes())) if err != nil {