version check has been inversed by error...
authorJean-Philippe Orsini <jeanfi@gmail.com>
Wed, 24 Jun 2015 20:36:09 +0000 (22:36 +0200)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Wed, 24 Jun 2015 20:36:09 +0000 (22:36 +0200)
src/tw.c

index 2a81754..4da313a 100644 (file)
--- a/src/tw.c
+++ b/src/tw.c
@@ -116,9 +116,9 @@ static int task_check_version()
            || !strcmp(ver, "2.3.0")
            || !strcmp(ver, "2.4.0")
            || !strcmp(ver, "2.4.1"))
-               return 0;
-       else
                return 1;
+       else
+               return 0;
 }
 
 static char *tw_exec(char *opts)