From a875f67a0809fe949757bb02fd25c33bdcdcc220 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 24 Mar 2020 02:40:29 -0700 Subject: [PATCH] fix pwd printout --- weed/shell/command_fs_pwd.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/weed/shell/command_fs_pwd.go b/weed/shell/command_fs_pwd.go index 084a5e90a..d7d9819c8 100644 --- a/weed/shell/command_fs_pwd.go +++ b/weed/shell/command_fs_pwd.go @@ -22,11 +22,7 @@ func (c *commandFsPwd) Help() string { func (c *commandFsPwd) Do(args []string, commandEnv *CommandEnv, writer io.Writer) (err error) { - fmt.Fprintf(writer, "http://%s:%d%s\n", - commandEnv.option.FilerHost, - commandEnv.option.FilerPort, - commandEnv.option.Directory, - ) + fmt.Fprintf(writer, "%s\n", commandEnv.option.Directory) return nil }