diff options
Diffstat (limited to 'script/release.sh')
-rwxr-xr-x | script/release.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/script/release.sh b/script/release.sh index da973b5085c..7e28b6bd7d5 100755 --- a/script/release.sh +++ b/script/release.sh @@ -790,7 +790,8 @@ announcement_samba_stable() { top=$(cat ${TMPDIR}/WHATSNEW.txt | wc -l) } local skip=$(cat ${TMPDIR}/WHATSNEW.txt | grep -n '^[^ ]' | head -1 | cut -d ':' -f1) - local bottom=$(expr ${top} - \( ${skip} - 1 \)) + local headlimit=$(expr ${top} - 1 ) + local taillimit=$(expr ${headlimit} - \( ${skip} - 1 \)) cat "announce.${tagname}.quotation.txt" echo "" @@ -798,7 +799,7 @@ announcement_samba_stable() { echo "Release Announcements" echo "---------------------" echo "" - head -${top} ${TMPDIR}/WHATSNEW.txt | tail -${bottom} + head -${headlimit} ${TMPDIR}/WHATSNEW.txt | tail -${taillimit} echo "" echo "================" echo "Download Details" |