From a9be1eaa5151a654a1f1daafba65a2b32926f29b Mon Sep 17 00:00:00 2001 From: Tobias Ottenweller Date: Sun, 19 May 2013 10:38:48 +0200 Subject: [PATCH] Updated the test-deployment script. Keep the version inside the filename. --- scripts/test-deployment.sh | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/scripts/test-deployment.sh b/scripts/test-deployment.sh index 73613d0..6dc5b8b 100755 --- a/scripts/test-deployment.sh +++ b/scripts/test-deployment.sh @@ -7,9 +7,11 @@ DEVELOPER=$(whoami) if [ $DEVELOPER = "tobi" ]; then BUKKIT_DIR="$HOME/minecraft/testbuk" PLUGIN_DIR="$HOME/minecraft/testbuk/plugins" + START_STOP_SCRIPT="$BUKKIT_DIR/../minecraft.sh" else BUKKIT_DIR="$SCRIPT_DIR/../bukkit-testserver" PLUGIN_DIR="$SCRIPT_DIR/../bukkit-testserver/plugins" + START_STOP_SCRIPT="$SCRIPT_DIR/minecraft.sh" fi @@ -23,13 +25,8 @@ VERSION="$(grep -C3 'de.craftinc' "$SCRIPT_DIR/../pom.xml" | grep ' "$BUKKIT_DIR/ops.txt" - -if [ $DEVELOPER = "tobi" ]; then - "$BUKKIT_DIR/../minecraft.sh" reload_or_start -else - "$SCRIPT_DIR/minecraft.sh" reload_or_start -fi +$START_STOP_SCRIPT reload_or_start