diff options
Diffstat (limited to 'examples/functions/exitstat')
-rw-r--r-- | examples/functions/exitstat | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/functions/exitstat b/examples/functions/exitstat index 2828a89..f49ebf5 100644 --- a/examples/functions/exitstat +++ b/examples/functions/exitstat @@ -8,7 +8,7 @@ function check_exit_status () local status="$?" local signal="" - if [ ${status} -ne 0 -a ${status} != 128 ]; then + if [ ${status} -ne 0 ] && [ ${status} != 128 ]; then # If process exited by a signal, determine name of signal. if [ ${status} -gt 128 ]; then signal="$(builtin kill -l $((${status} - 128)) 2>/dev/null)" |