summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/control.sh9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/control.sh b/src/control.sh
index 45600a6..2a7634d 100644
--- a/src/control.sh
+++ b/src/control.sh
@@ -100,11 +100,10 @@ parse_control()
return 0
fi
fi
- name="${line%%:*}"
- value="${line#*:}"
- value="${value# }"
- if [ "x${name}" = 'x' -o "x${name}" = \
- "x${line}" ]; then
+ IFS=': ' read name value <<-EOF
+ ${line}
+ EOF
+ if [ "x${name}" = 'x' ]; then
_parse_control_error "${file}" \
"${line_nr}" 'control_bad_nv'
continue