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