]> git.ipfire.org Git - people/ms/network.git/commitdiff
assert: Let assert exit with the right exit code.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 30 Jun 2012 09:48:07 +0000 (09:48 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 30 Jun 2012 09:48:07 +0000 (09:48 +0000)
functions.util

index 8abae1812aaf483d47cd0e6529ed0c640d072951..6b9daf3530a775c64bc59e608309b053d5188f26 100644 (file)
@@ -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}