From 3a5bf3060107afaa51186e85bde05bcc123e7368 Mon Sep 17 00:00:00 2001 From: "Jason M. Wood" Date: Wed, 4 Dec 2013 16:21:17 -0700 Subject: [PATCH] Drop unnecessary variables and comments --- minecraft_server | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/minecraft_server b/minecraft_server index c43e1ec..4538329 100755 --- a/minecraft_server +++ b/minecraft_server @@ -773,15 +773,11 @@ start() { exit 1 fi sleep 1 - # Grab the Screen Process ID of the server. - PID=$(getScreenPID "$1") - if [ ! -n "$PID" ]; then + if [ $(getScreenPID "$1") -eq 0 ]; then printf "Error starting the server: SCREEN failed to create a screen for the server.\n" exit 1 fi - # Grab the Java Process ID of the server. - PID=$(getJavaPID "$1") - if [ ! -n "$PID" ]; then + if [ $(getJavaPID "$1") -eq 0 ]; then printf "Error starting the server: couldn't retrieve the server's process ID.\n" exit 1 fi