make executable name in command output stable
by setting os.Args[0] to "ipfs" License: MIT Signed-off-by: keks <keks@cryptoscope.co>
keks committed
Dec 20, 2017 at 18:38 UTC
c2ffb8e73b12769b9b99d0d5c8e3cc5bfafd022f
1 file changed
+4
cmd/ipfs/main.go
+4
@@ -101,6 +101,10 @@ func mainRet() int {
101
}
102
}
103
104
+ // output depends on excecutable name passed in os.Args
105
+ // so we need to make sure it's stable
106
+ os.Args[0] = "ipfs"
107
+
108
buildEnv := func(ctx context.Context, req *cmds.Request) (interface{}, error) {
109
repoPath, err := getRepoPath(req)
110
if err != nil {