summaryrefslogtreecommitdiffstats
path: root/lib/control.sh
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-11-22 14:19:56 (EST)
committer P. J. McDermott <pjm@nac.net>2012-11-22 14:19:56 (EST)
commit912d70af7dac244d93cb875a824912ba8437cec5 (patch)
tree3fd9de419cb6cd40c8ed0ac4873687205fdb6577 /lib/control.sh
parenta3530e29612b21e965fd869a47c44fc2e6d56d5a (diff)
Use cat in ob_parse_{control,changelog}().
This allows lines to be read from standard input.
Diffstat (limited to 'lib/control.sh')
-rw-r--r--lib/control.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/control.sh b/lib/control.sh
index d480c22..4c38583 100644
--- a/lib/control.sh
+++ b/lib/control.sh
@@ -115,7 +115,9 @@ ob_parse_control()
_obpco_value="${_obpco_value}
${_obpco_line# }"
fi
- done <"${_obpco_file}"
+ done <<-EOF
+ $(cat "${_obpco_file}")
+ EOF
if [ -n "${_obpco_name}" ]; then
OB_CONTROL_NAME="${_obpco_name}"