Compare commits

..

No commits in common. "4577cf384e414d3b342d03017541dfe917e6fb87" and "401f678842c36e1599693e644aa5eac341b32ecd" have entirely different histories.

2 changed files with 3 additions and 8 deletions

View file

@ -1,4 +1,6 @@
#!/usr/bin/env bash
# required for the complex pipes in the machine function
shopt -s lastpipe
install_dir="$(dirname "$(readlink -f "$0")")" # find the install directory
source "$install_dir/functions.sh"
@ -18,6 +20,7 @@ else
echo "Firewall rule already exists"
fi
latest=`curl -s https://api.papermc.io/v2/projects/paper/ | jq -r .versions[-1]`
versionprompt
echo -n "Waiting for machine to respond"
# send pings every second, waiting for 1 second

View file

@ -1,6 +1,3 @@
# required for the complex pipes
shopt -s lastpipe
config() {
local command="$1"; shift
@ -235,12 +232,7 @@ machine(){
esac
}
versionprompt() {
if [ -z ${latest+x} ]; then
latest=`curl -s https://api.papermc.io/v2/projects/paper/ | jq -r .versions[-1]`
fi
# ask the user which version of minecraft they would like to install
echo "Which version of minecraft would you like to serve?"
echo -n "Version [$latest]:"