@cryptotaxi247 / kubo / commits / fcef972cd

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 <steven@stebalien.com>

Steven Allen committed Jan 23, 2018 at 12:01 UTC fcef972cda71096f53b30fc3899d7645b816f9fa
1 file changed +1 -5
core/commands/get.go
+1 -5
@@ -119,11 +119,7 @@ may also specify the level of compression by specifying '-l=<1-9>'.
119 return
120 }
121
122 - outPath, _ := req.Options["output"].(string)
123 - if len(outPath) == 0 {
124 - _, outPath = gopath.Split(req.Arguments[0])
125 - outPath = gopath.Clean(outPath)
126 - }
122 + outPath := getOutPath(req)
123
124 cmplvl, err := getCompressOptions(req)
125 if err != nil {