tool_operate: Added support for performing URL specific operations
authorSteve Holme <steve_holme@hotmail.com>
Sun, 9 Feb 2014 11:01:36 +0000 (11:01 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Sun, 9 Feb 2014 11:03:57 +0000 (11:03 +0000)
src/tool_operate.c

index 326b549..b4034e8 100644 (file)
@@ -1844,9 +1844,16 @@ int operate(struct Configurable *config, int argc, argv_item_t argv[])
       list_engines(engines);
       curl_slist_free_all(engines);
     }
-    /* Perform the main operation */
-    else
-      result = operate_do(config);
+    /* Perform the main operations */
+    else {
+      struct Configurable *operation = config;
+
+      while(!result && operation) {
+        result = operate_do(operation);
+
+        operation = operation->next;
+      }
+    }
   }
 
   /* Perform the cleanup */