diff options
-rw-r--r-- | lib/control.sh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/control.sh b/lib/control.sh index 234a375..524c504 100644 --- a/lib/control.sh +++ b/lib/control.sh @@ -120,8 +120,7 @@ ob_parse_control() ;; [!\ ]*':'*) # "Name: Value" line. if [ -n "${name}" ]; then - "${field_cb}" "${name}" "${value}" "${user_data}" - if [ ${?} -ne 0 ]; then + if ! "${field_cb}" "${name}" "${value}" "${user_data}"; then return 0 fi fi @@ -172,8 +171,7 @@ ${line# }" EOF if [ -n "${name}" ]; then - "${field_cb}" "${name}" "${value}" "${user_data}" - if [ ${?} -ne 0 ]; then + if ! "${field_cb}" "${name}" "${value}" "${user_data}"; then return 0 fi fi |