mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-01 02:30:39 +08:00
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>
This commit is contained in:
@ -119,11 +119,7 @@ may also specify the level of compression by specifying '-l=<1-9>'.
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
outPath, _ := req.Options["output"].(string)
|
outPath := getOutPath(req)
|
||||||
if len(outPath) == 0 {
|
|
||||||
_, outPath = gopath.Split(req.Arguments[0])
|
|
||||||
outPath = gopath.Clean(outPath)
|
|
||||||
}
|
|
||||||
|
|
||||||
cmplvl, err := getCompressOptions(req)
|
cmplvl, err := getCompressOptions(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Reference in New Issue
Block a user