]> git.ipfire.org Git - people/ms/network.git/commit - functions.util
assert_check_retval: New function.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 30 Jun 2012 09:48:41 +0000 (09:48 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 30 Jun 2012 09:48:41 +0000 (09:48 +0000)
commitb0b2f995c1ab2be2437808fb31d28246a18686a7
tree206fe65aa042a318d741524a14eaedf847ac373d
parentcfbe0802f76fb9d40a55eacda7b1c3ed3e27b2b2
assert_check_retval: New function.

This function takes one argument which is an exit code
of a previously called function.
If the exit code equals the assertion exit code, the
script stops immediately.
functions.util