make the version check more verbose
This commit is contained in:
parent
29c0e496d3
commit
7a5b84de0a
1 changed files with 4 additions and 1 deletions
|
@ -30,7 +30,10 @@ $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
|
||||
$echo [ grep "versions_accepted=.*$PREV_VERSION" $DEV_SERVER_CONFIG ] || exit 1
|
||||
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
|
||||
$echo sed -i -e "/versions_accepted=/s/$PREV_VERSION/$NEXT_VERSION/" $DEV_SERVER_CONFIG
|
||||
$echo sed -i -e "/motd=/s/$PREV_VERSION/$NEW_VERSION/g" $DEV_SERVER_CONFIG
|
||||
# update previous version redirect
|
||||
|
|
Loading…
Add table
Reference in a new issue