mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-20 18:46:19 +00:00
correct variable assignment
This commit is contained in:
parent
9da4d68fae
commit
c3a6fdfdf5
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user