summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHerman van Rink2017-09-29 12:51:03 (GMT)
committerHerman van Rink2017-09-29 12:52:03 (GMT)
commitb89efcc1b1866924357ac4473955b871539e3f52 (patch)
treea01683c38af675fad9f8b0a4bbb48e65818efd20
parent513fd9f57219321879f483ae63778acb2501cca8 (diff)
Add * None line to projects without changes
-rwxr-xr-xscripts/release_notes.sh14
1 files changed, 12 insertions, 2 deletions
diff --git a/scripts/release_notes.sh b/scripts/release_notes.sh
index 35db945..adcc0c8 100755
--- a/scripts/release_notes.sh
+++ b/scripts/release_notes.sh
@@ -20,8 +20,18 @@ for shortname in $modules; do
cd $shortname >> /dev/null;
git pull --quiet
echo "**Changes to $shortname since $prev_release**"
- drush rn --baseurl=https://www.drupal.org/ --md $prev_release HEAD | grep -v "Changes since $prev_release"
+ changes=`drush rn --baseurl=https://www.drupal.org/ --md $prev_release HEAD | grep -v "Changes since $prev_release"`
+ if [ -z "$changes" ]; then
+ echo
+ echo "* None"
+ else
+ echo "$changes"
+ fi
+
+ echo
+ echo
+
cd - >> /dev/null;
done
-cd -
+cd - >> /dev/null;