aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-02-09 11:01:36 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-02-09 11:03:57 +0000
commit8cf63f88c24946ff389b2cb74eee68f00e65dfcf (patch)
treef5f37b513f2a0f6db840dd93af49e9f580b00bac
parentc5f8e2f5f431e84fa3baf7e1205c0ea9b5a4db19 (diff)
tool_operate: Added support for performing URL specific operations
-rw-r--r--src/tool_operate.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c
index 326b5493f..b4034e8cb 100644
--- a/src/tool_operate.c
+++ b/src/tool_operate.c
@@ -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 */