mirror of
https://github.com/lifegpc/game-auto-sync.git
synced 2026-06-06 05:48:58 +08:00
更新默认的 rclone 可执行文件名为 "rclone",并为 rclone 标志设置默认值为 ["-P"]。
This commit is contained in:
@@ -128,7 +128,7 @@ impl Config {
|
||||
pub fn rclone_exe(&self) -> String {
|
||||
match self.get_str("rclone_exe") {
|
||||
Some(s) => s.to_owned(),
|
||||
None => String::from("game-backuper"),
|
||||
None => String::from("rclone"),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -141,7 +141,8 @@ impl Config {
|
||||
}
|
||||
|
||||
pub fn rclone_flag(&self) -> Vec<String> {
|
||||
self.get_str_vec("rclone_flag").unwrap_or(vec![])
|
||||
self.get_str_vec("rclone_flag")
|
||||
.unwrap_or(vec!["-P".to_owned()])
|
||||
}
|
||||
|
||||
#[cfg(windows)]
|
||||
|
||||
Reference in New Issue
Block a user