#!/bin/sh # Bibliothek is Paper's API for downloading builds # https://docs.papermc.io/misc/downloads-api _fetch_latest_build() { builds_url="$1/builds" debug "fetch: $builds_url" # We have to read the variables like this because POSIX read # doesn't support reading multiple variables at a time for var in LATEST_BUILD LATEST_BUILD_FILENAME; do read -r "${var?}" done <