osmo-release.sh: Fix error condition no LIBVERSION modified

It turns out git status doesn't return an error code in any of the
modified/unmodified cases. It's not clear anyway why we check
TODO-RELEASE when we actually care about the file containing the
LIBVERSION (non-)change.

Change-Id: I2320d6ee29cd528e55c0609be1af350655123b85
This commit is contained in:
Pau Espin 2018-05-02 15:58:37 +02:00 committed by Harald Welte
parent dcbb24b8c8
commit 0b0f908859
1 changed files with 2 additions and 5 deletions

View File

@ -40,11 +40,8 @@ else
grep '#' TODO-RELEASE > TODO-RELEASE.clean
mv TODO-RELEASE.clean TODO-RELEASE
if [ "z$MAKEMOD" = "z" ]; then
git status -s -uno TODO-RELEASE
if [ $? -ne 0 ]; then
echo "Before releasing, please modify some of the libversions: $LIBVERS"
exit 1
fi
echo "Before releasing, please modify some of the libversions: $LIBVERS"
exit 1
fi
xargs -a TODO-RELEASE.entries -r -d'\n' -I entry dch -m -v $NEW_VER "entry"
rm TODO-RELEASE.entries