summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-01-24 00:27:41 (EST)
committer P. J. McDermott <pj@pehjota.net>2016-01-24 00:27:41 (EST)
commit4c719a5cb9d455d151d301c6ebd1370fe22993f4 (patch)
tree4b29c010f628ccb7dbf252ab2c0baa0e4596e978 /src
parentfa9ca9224807e73a0a3247d12a2c3cfc02cffddb (diff)
ob-gencontrol: Drop trailing commas and spaces in deps
Diffstat (limited to 'src')
-rw-r--r--src/ob-gencontrol.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ob-gencontrol.sh b/src/ob-gencontrol.sh
index f5e777a..b0180e2 100644
--- a/src/ob-gencontrol.sh
+++ b/src/ob-gencontrol.sh
@@ -123,7 +123,8 @@ gen_control()
value="$(ob_substvars "${value}")"
;;
esac
- printf '%s: %s\n' "${name}" "${value}" \
+ printf '%s: %s\n' "${name}" "${value}" | \
+ sed 's/[, ]*$//' \
>>"${binary}.control/control"
fi
done