correct variable assignment
This commit is contained in:
parent
9da4d68fae
commit
c3a6fdfdf5
1 changed files with 5 additions and 4 deletions
|
@ -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…
Add table
Reference in a new issue