From 138e95eec2483851a5b5ac2b2ceb0a813dbd49d8 Mon Sep 17 00:00:00 2001 From: gramanas Date: Thu, 24 Jan 2019 23:44:58 +0200 Subject: Return 0 when printing version info --- src/ck.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ck.c') diff --git a/src/ck.c b/src/ck.c index b9e6f53..1364d23 100644 --- a/src/ck.c +++ b/src/ck.c @@ -43,6 +43,7 @@ int main(int argc, const char **argv) { /* get user opt */ if (parse_action(argc, argv, &opt)) { + if(opt.version) rc = 0; goto error; } /* If the action is init or help don't load the config, skip to running it*/ -- cgit v1.2.3