Skip to content

Commit cc58981

Browse files
committed
移除目录末尾的 /
1 parent 2bef499 commit cc58981

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ var rootCmd = &cobra.Command{
5050
var allow = make([]string, len(files))
5151
for i, f := range files {
5252
if strings.HasPrefix(f, "/") {
53-
allow[i] = f
53+
allow[i] = filepath.Join("/", f)
5454
} else {
5555
allow[i] = filepath.Join(wd, f)
5656
}

0 commit comments

Comments
 (0)