From: Michael Tremer Date: Sat, 30 Jun 2012 09:48:07 +0000 (+0000) Subject: assert: Let assert exit with the right exit code. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cfbe0802f76fb9d40a55eacda7b1c3ed3e27b2b2;p=people%2Fstevee%2Fnetwork.git assert: Let assert exit with the right exit code. --- diff --git a/functions.util b/functions.util index 8abae181..6b9daf35 100644 --- a/functions.util +++ b/functions.util @@ -203,7 +203,7 @@ function assert() { if ! ${assertion}; then error_log "Assertion '${assertion}' failed." backtrace - exit ${EXIT_ERROR} + exit ${EXIT_ERROR_ASSERT} fi return ${EXIT_OK}