wesnoth/utils/mp-server/revert_build
2018-03-11 14:59:37 +11:00

19 lines
286 B
Bash
Executable File

#!/bin/sh
if ! [ $# -eq 1 ]; then
echo "Syntax: $0 <server version>" >&2
exit 1
fi
SERVER=$1
SERVERBASE=$HOME/servers/$SERVER
if ! [ -d $SERVERBASE ]; then
echo "$SERVER server not found." >&2
exit 1
fi
cd $SERVERBASE
rm -f revertedbuild
mv build revertedbuild
mv oldbuild build