summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/control.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/control.sh b/lib/control.sh
index 34e460b..5dcdc29 100644
--- a/lib/control.sh
+++ b/lib/control.sh
@@ -54,8 +54,8 @@ ob_parse_control()
'control_empty_line'
elif [ "${_obpco_line# }" = "${_obpco_line}" ]; then
# "Name: Value" line.
- _obpco_name="${_line%%:*}"
- _obpco_value="${_line#*: }"
+ _obpco_name="${_obpco_line%%:*}"
+ _obpco_value="${_obpco_line#*: }"
if [ -z "${_obpco_name}" -o "${_obpco_name}" = "${_obpco_line}" \
-o -z "${_obpco_value}" ]; then
# Badly formatted control field.
@@ -90,14 +90,14 @@ ob_parse_control()
fi
else
# Continuation line.
- if [ -z "${_name}" ]; then
+ if [ -z "${_obpco_name}" ]; then
# Expecting a "Name: Value" line.
_ob_parse_control_error "${_obpco_file}" "${_obpco_line_nr}" \
'control_found_continuation'
continue
fi
_obpco_value="${_obpco_value}
-${_line# }"
+${_obpco_line# }"
fi
done <"${_obpco_file}"