use os.PathSeparator replace /
Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
parent
7743f317d1
commit
ec648c4011
2
main.go
2
main.go
|
|
@ -798,7 +798,7 @@ func (c configImpl) Args() string {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c configImpl) OutputDir() 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 {
|
func (c configImpl) OutputDirTemplate() string {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue