fix strip-components

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu
2019-09-28 16:30:07 +08:00
parent cf9e6f260d
commit 15344d67ae
+3 -1
View File
@@ -7,6 +7,7 @@ import (
"os"
"os/exec"
"path/filepath"
"strconv"
"strings"
"sync"
"time"
@@ -205,7 +206,8 @@ func (p *Plugin) Args(target string) []string {
)
if p.Config.StripComponents > 0 {
args = append(args, fmt.Sprintf("-strip-components=%d", p.Config.StripComponents))
args = append(args, "--strip-components")
args = append(args, strconv.Itoa(p.Config.StripComponents))
}
args = append(args,