summaryrefslogtreecommitdiffstats
path: root/lib/control.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/control.sh')
-rw-r--r--lib/control.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/control.sh b/lib/control.sh
index 99bf2c5..5286a88 100644
--- a/lib/control.sh
+++ b/lib/control.sh
@@ -39,7 +39,8 @@ ob_parse_control()
_obpco_req_fields="${3}"
_obpco_opt_fields="${4}"
else
- return $(_ob_return 125)
+ _ob_return 125
+ return ${?}
fi
_obpco_all_fields=" ${_obpco_req_fields} ${_obpco_opt_fields} "
@@ -85,7 +86,8 @@ ob_parse_control()
OB_CONTROL_VALUE="${_obpco_value}"
"${_obpco_field_cb}"
if [ ${?} -ne 0 ]; then
- return $(_ob_return 0)
+ _ob_return 0
+ return ${?}
fi
else
# Continuation line.
@@ -111,7 +113,8 @@ ${_line# }"
"${_obpco_req_fields}"
fi
- return $(_ob_return 0)
+ _ob_return 0
+ return ${?}
}
_ob_parse_control_error()
@@ -138,5 +141,6 @@ _ob_parse_control_error()
ob_set_text_domain "${_obpcoe_orig_text_domain}"
- return $(_ob_return 0)
+ _ob_return 0
+ return ${?}
}