mirror of
https://github.com/lifegpc/game-auto-sync.git
synced 2026-07-08 01:30:49 +08:00
更新默认的 rclone 可执行文件名为 "rclone",并为 rclone 标志设置默认值为 ["-P"]。
This commit is contained in:
@@ -128,7 +128,7 @@ impl Config {
|
|||||||
pub fn rclone_exe(&self) -> String {
|
pub fn rclone_exe(&self) -> String {
|
||||||
match self.get_str("rclone_exe") {
|
match self.get_str("rclone_exe") {
|
||||||
Some(s) => s.to_owned(),
|
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> {
|
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)]
|
#[cfg(windows)]
|
||||||
|
|||||||
Reference in New Issue
Block a user