wesnoth/utils/mp-server/revert_build
Gunter Labes 7fa4661094 send error messages to STDERR
get the server port from the redirect.cfg (which needs to be changed anyway)
2008-04-26 18:10:52 +00:00

19 lines
287 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