use os.PathSeparator replace /

Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
yxxhero 2022-04-12 13:13:53 +08:00
parent 7743f317d1
commit ec648c4011
1 changed files with 1 additions and 1 deletions

View File

@ -798,7 +798,7 @@ func (c configImpl) Args() string {
}
func (c configImpl) OutputDir() string {
return strings.TrimRight(c.c.String("output-dir"), "/")
return strings.TrimRight(c.c.String("output-dir"), fmt.Sprintf("%c", os.PathSeparator))
}
func (c configImpl) OutputDirTemplate() string {