From cf79b86ee0bb712eb69c0ff9ceb7917c5b1aa07b Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 23 Oct 2012 23:20:08 -0400 Subject: Make optional the space after ":" in control info. --- (limited to 'lib') diff --git a/lib/control.sh b/lib/control.sh index 5190155..35b597c 100644 --- a/lib/control.sh +++ b/lib/control.sh @@ -71,7 +71,8 @@ ob_parse_control() fi fi _obpco_name="${_obpco_line%%:*}" - _obpco_value="${_obpco_line#*: }" + _obpco_value="${_obpco_line#*:}" + _obpco_value="${_obpco_value# }" if [ -z "${_obpco_name}" -o "${_obpco_name}" = "${_obpco_line}" \ -o -z "${_obpco_value}" ]; then # Badly formatted control field. -- cgit v0.9.1