mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-26 02:43:17 +00:00
correct the test logic..
This commit is contained in:
parent
7a5b84de0a
commit
3fe0dfd078
@ -30,7 +30,7 @@ $echo sed -i -e "/motd=/s/$PREV_VERSION/$NEW_VERSION/g" $PREV_SERVER_CONFIG
|
||||
# reload the config
|
||||
$echo killall -SIGHUP wesnothd-$DEV_VERSION-prev || exit 1
|
||||
# check if we currently allow the previous version to prevent announcing the same version twice
|
||||
if [ $(grep "versions_accepted=.*$PREV_VERSION" $DEV_SERVER_CONFIG) ]; then
|
||||
if ! [ $(grep "versions_accepted=.*$PREV_VERSION" $DEV_SERVER_CONFIG) ]; then
|
||||
echo "Previous version $PREV_VERSION currently not allowed. Announcing the right version? Aborting..."
|
||||
exit 1
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user