diff --git a/cmd/ipfs/main.go b/cmd/ipfs/main.go index c1bbcb6ed..b3261589f 100644 --- a/cmd/ipfs/main.go +++ b/cmd/ipfs/main.go @@ -101,6 +101,10 @@ func mainRet() int { } } + // output depends on excecutable name passed in os.Args + // so we need to make sure it's stable + os.Args[0] = "ipfs" + buildEnv := func(ctx context.Context, req *cmds.Request) (interface{}, error) { repoPath, err := getRepoPath(req) if err != nil {