Commit c2ffb8e7 authored by keks's avatar keks Committed by Jeromy

make executable name in command output stable

by setting os.Args[0] to "ipfs"

License: MIT
Signed-off-by: default avatarkeks <keks@cryptoscope.co>
parent 8061117e
......@@ -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 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment