correct variable assignment

This commit is contained in:
Gunter Labes 2007-11-20 03:26:44 +00:00
parent 9da4d68fae
commit c3a6fdfdf5

View file

@ -3,6 +3,11 @@ if ! [ $# -ge 1 ]; then
echo "Syntax: $0 <server version> [message]"
exit 1
fi
SERVER=$1
SERVERBASE=$HOME/servers/$SERVER
SOCKET=$SERVERBASE/build/var/run/socket
shift
if [ "$*" == "" ]; then
message="The server will get restarted now. Please don't forget to save your game!"
@ -11,10 +16,6 @@ else
message=$*
fi
SERVER=$1
SERVERBASE=$HOME/servers/$SERVER
SOCKET=$SERVERBASE/build/var/run/socket
if ! [ -e $SOCKET ]; then
echo "$SOCKET not found, sending to the 'oldbuild'."
SOCKET=$SERVERBASE/oldbuild/var/run/socket