From 2af6ccd492d39fb4f089b8ac7d75ce5934a70b03 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 19 Nov 2010 07:28:53 -0800 Subject: proper exit on failure. --- src/commit2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/commit2.c b/src/commit2.c index e1119b4..aeb9ce7 100644 --- a/src/commit2.c +++ b/src/commit2.c @@ -401,7 +401,7 @@ main(int argc, char** argv) //remove tmp changes file as all the work is now done unlink(COMMIT_CHANGES_FILE); - exit (errors == 2); + exit (errors == 2 ? 0 : 1); } -- cgit v1.2.3