]> git.r.bdr.sh - rbdr/blog/blobdiff - src/command/sync_down.rs
Add CI
[rbdr/blog] / src / command / sync_down.rs
index bba34b29a0837a1e01086dd82186986e64995a97..eb8e57afdf0b01c0b9b28cedb76eb0541608e922 100644 (file)
@@ -16,8 +16,13 @@ impl super::Command for SyncDown {
     }
 
     fn execute(&self, _: Option<&String>, configuration: &Configuration, command: &String) -> Result<()> {
     }
 
     fn execute(&self, _: Option<&String>, configuration: &Configuration, command: &String) -> Result<()> {
-        if command == self.command() {
-            return sync_down(&configuration.data_directory, &configuration.remote_config);
+        match sync_down(&configuration.data_directory, &configuration.remote_config) {
+            Ok(_) => {}
+            Err(e) => {
+                if command == self.command() {
+                    return Err(e)
+                }
+            }
         }
         return Ok(())
     }
         }
         return Ok(())
     }