From a760746ebdc9dace3d293516e8eb6ab593ed090a Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 02 Oct 2012 22:49:10 -0400 Subject: Fix old variable names in ob_parse_control(). --- 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}" -- cgit v0.9.1