From fcef972cda71096f53b30fc3899d7645b816f9fa Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Tue, 23 Jan 2018 12:01:26 -0800 Subject: [PATCH] restore call to getOutPath function It strips the last `/` which was part of a partial fix for #3729. Unfortunately, it's not a *real* fix but we might as well leave this as it is until we completely fix it. License: MIT Signed-off-by: Steven Allen --- core/commands/get.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core/commands/get.go b/core/commands/get.go index 27a052f1e..13b9bf445 100644 --- a/core/commands/get.go +++ b/core/commands/get.go @@ -119,11 +119,7 @@ may also specify the level of compression by specifying '-l=<1-9>'. return } - outPath, _ := req.Options["output"].(string) - if len(outPath) == 0 { - _, outPath = gopath.Split(req.Arguments[0]) - outPath = gopath.Clean(outPath) - } + outPath := getOutPath(req) cmplvl, err := getCompressOptions(req) if err != nil {