scripts: fix calculation of linesChanged
thanks to
git diff origin/master -- doc/news/_preparation_next_release.md | egrep "^\+.+\*\(.+\)\*"
if [ $? != "0" ]
then
- linesChanged=`git diff origin/master -- doc/news/_preparation_next_release.md | egrep "^\+" | wc -l`
+ linesChanged=`git diff --numstat origin/master -- doc/news/_preparation_next_release.md | cut -f1`
if [ "$linesChanged" -ge "5" ]
then
echo "We assume that you know what you are doing."
