abort only for exit code 1

This commit is contained in:
Bernhard Landauer 2017-02-22 03:06:15 +01:00
parent be2f122b57
commit 66406f5187

View File

@ -151,7 +151,7 @@ check_for_error() {
_msg="${_msg}: $(head -n1 ${ERR})"
rm "${ERR}"
}
if ((${_err}!=0)); then
if ((${_err}==1)); then
_msg="ERROR: ${_msg}"
DIALOG " $_ErrTitle " --msgbox "\n$(cat ${ERR})\n" 0 0
# and function for varsdump ? _msg="$_msg \n $(declare -p | grep -v " _")"