Fix 'Bad substitution' error in util/build-packages.

This commit is contained in:
Daniel Nichter
2012-03-07 16:27:04 -07:00
parent 6eff465223
commit 5f95d06a58

View File

@@ -292,9 +292,9 @@ update_rel_notes() {
local line="v$VERSION released $DATE"
local len=${#line}
local ul=$(printf "%${len}s")
local ul="$(printf "%${len}s" | tr [:space:] '=')"
echo "$line" >> /tmp/release_notes.tmp
echo "${ul// /=}" >> /tmp/release_notes.tmp
echo "$ul" >> /tmp/release_notes.tmp
echo >> /tmp/release_notes.tmp
(cd $cwd && cat $REL_NOTES >> /tmp/release_notes.tmp)
echo >> /tmp/release_notes.tmp