Menu

#81 Return status should not depend on number of lines of $log_errfile file

v3.0_testing
open
nobody
None
5
2015-01-19
2015-01-19
No

Return status should depend on the sum of mysqldump results status and not on number of lines at $log_errfile. For a quick workaround, I'm removing Warning messages from $log_errfile and considering well all messages at $log_errfile are Warnings, this is what I changed to _rc6 release:

if [[ -s "$log_errfile" ]];then status=1; else status=0; fi

    if [  -z "$(grep -v Warning $log_errfile)" ] ; then status=0; else status=1; fi

Discussion


Log in to post a comment.