tExit with FAIL status if curl fails - repo - list/download/sync packs with remote repositories
DIR Log
DIR Files
DIR Refs
DIR README
---
DIR commit d9c5e6e1e01b02087fc1a6c209bcf0c857b91eb6
DIR parent 97ca69b8babb740a48a72c13847d0e85b8c9d3be
HTML Author: z3bra <willyatmailoodotorg>
Date: Fri, 16 Dec 2016 02:27:53 +0100
Exit with FAIL status if curl fails
Diffstat:
M repo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/repo.c b/repo.c
t@@ -125,7 +125,7 @@ download(char *url, FILE *fd)
r = curl_easy_perform(c);
if (r != CURLE_OK) {
fprintf(stderr, "%s: %s\n", encurl, curl_easy_strerror(r));
- return r;
+ exit(1);
}
free(fn);