Skip to content

Commit 6d9e722

Browse files
committed
fix: backslash in config file is not acceptable
Signed-off-by: lxl66566 <lxl66566@gmail.com>
1 parent 9bb6fd7 commit 6d9e722

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ impl Config {
9393
format!("{path_relative_to_repo:?}").green()
9494
);
9595
self.crypt_list.push(
96-
(path_relative_to_repo.to_string_lossy() + if path.is_dir() { "/**" } else { "" })
97-
.into(),
96+
path_relative_to_repo.to_string_lossy().replace('\\', "/")
97+
+ if path.is_dir() { "/**" } else { "" },
9898
);
9999

100100
// check extension

0 commit comments

Comments
 (0)