From 4c719a5cb9d455d151d301c6ebd1370fe22993f4 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 24 Jan 2016 00:27:41 -0500 Subject: ob-gencontrol: Drop trailing commas and spaces in deps --- (limited to 'src') 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 -- cgit v0.9.1