mirror of
https://github.com/MinecraftServerControl/mscs.git
synced 2024-11-15 23:08:18 -07:00
drop an unneeded variable
This commit is contained in:
parent
a9d943b199
commit
66ed95bbf7
@ -856,7 +856,7 @@ syncMirrorImage() {
|
||||
# @param 1 The world server to start.
|
||||
# ---------------------------------------------------------------------------
|
||||
start() {
|
||||
local PID SERVER_COMMAND WORLD_DIR
|
||||
local PID WORLD_DIR
|
||||
# Make sure that the server software exists.
|
||||
updateServerSoftware "$1"
|
||||
# Make sure that the world's directory exists.
|
||||
@ -887,8 +887,7 @@ start() {
|
||||
# Change to the world's directory.
|
||||
cd $WORLD_DIR
|
||||
# Start the server.
|
||||
SERVER_COMMAND=$(getServerCommand "$1")
|
||||
execute "$SCREEN -dmS minecraft-$1 $SERVER_COMMAND" $USER_NAME
|
||||
execute "$SCREEN -dmS minecraft-$1 $(getServerCommand "$1")" $USER_NAME
|
||||
if [ $? -ne 0 ]; then
|
||||
printf "Error starting the server.\n"
|
||||
exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user