X-Git-Url: https://git.r.bdr.sh/rbdr/blog/blobdiff_plain/172f4c8807d44ebe38c7f227b7fdc2d6a9dbe323..c4b892b16fb92c7d89eaee0b1588c52c8836216b:/src/command/sync_up.rs?ds=sidebyside diff --git a/src/command/sync_up.rs b/src/command/sync_up.rs index a5d2a4c..c44e0b0 100644 --- a/src/command/sync_up.rs +++ b/src/command/sync_up.rs @@ -15,8 +15,16 @@ impl super::Command for SyncUp { vec![] } - fn execute(&self, _: Option<&String>, configuration: &Configuration, _: &String) -> Result<()> { - sync_up(&configuration.data_directory, &configuration.remote_config) + fn execute(&self, _: Option<&String>, configuration: &Configuration, command: &String) -> Result<()> { + match sync_up(&configuration.data_directory, &configuration.remote_config) { + Ok(_) => {} + Err(e) => { + if command == self.command() { + return Err(e) + } + } + } + return Ok(()) } fn after_dependencies(&self) -> Vec> {