From 15344d67ae5b16ee8171f2ed1002ac567acf5398 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sat, 28 Sep 2019 16:30:07 +0800 Subject: [PATCH] fix strip-components Signed-off-by: Bo-Yi Wu --- plugin.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin.go b/plugin.go index db95fff..adf68f7 100644 --- a/plugin.go +++ b/plugin.go @@ -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,