summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-03-18 12:39:55 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-03-18 12:39:55 (EDT)
commitde8ad4a80221f567866b97662d83756b406ff66f (patch)
tree803be1c6d80cd4376cb3b29a058b5ee6399fb5c1 /src
parent04b5b673f106eeda11ae4d818e91cf607bf42458 (diff)
ob-gencontrol: Replace here-document with printf
Commit a572faa3 replaced echo with this here-document, which takes an unnecessary amount of vertical space.
Diffstat (limited to 'src')
-rw-r--r--src/ob-gencontrol.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/ob-gencontrol.sh b/src/ob-gencontrol.sh
index 9b62937..d825bc8 100644
--- a/src/ob-gencontrol.sh
+++ b/src/ob-gencontrol.sh
@@ -114,10 +114,7 @@ gen_control()
cat >>"${binary}.control/control" <<-EOF
Installed-Size: ${inst_size}
- Description:$(sed 's/^/ /' <<-EOD
- ${desc}
- EOD
- )
+ Description:$(printf '%s' "${desc}" | sed 's/^/ /')
EOF
homepage="$(ob_get_source_parameter 'Homepage')"