summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-10-02 22:49:10 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-10-02 22:49:10 (EDT)
commita760746ebdc9dace3d293516e8eb6ab593ed090a (patch)
treefa1dd6a7333761cedae0e6105ce9726ad9a6ccc2
parentc11d9d389de9c972f7b78ffcbab2265d54d5e11a (diff)
Fix old variable names in ob_parse_control().
-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}"