Test: Fix invalid argument in test expression
Before this update the test would report an illegal number, if the
release notes were not updated at all.
git diff origin/master -- doc/news/_preparation_next_release.md | egrep "^\+.+_\(.+\)_"
if [ $? != "0" ]; then
linesChanged=$(git diff --numstat origin/master -- doc/news/_preparation_next_release.md | cut -f1)
- if [ "$linesChanged" -ge "5" ]; then
+ if [ -n "$linesChanged" ] && [ "$linesChanged" -ge "5" ]; then
echo "We assume that you know what you are doing."
exit 0
fi
