UltimateByte
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
lgsm/functions/update_minecraft.sh
|
@ -9,7 +9,8 @@ local commandaction="Update" |
|
|
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" |
|
|
local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" |
|
|
|
|
|
|
|
|
fn_update_dl(){ |
|
|
fn_update_dl(){ |
|
|
latestmcbuildurl=$(${curlpath} -s $(${curlpath} -s "https://launchermeta.mojang.com/mc/game/version_manifest.json" | jq -r '.versions[0] | .url') | jq -r '.downloads.server.url') |
|
|
latestmcreleaselink=$(${curlpath} -s "https://launchermeta.mojang.com/mc/game/version_manifest.json" | jq -r '.latest.release as $latest | .versions[] | select(.id == $latest) | .url') |
|
|
|
|
|
latestmcbuildurl=$(${curlpath} -s "${latestmcreleaselink}" | jq -r '.downloads.server.url') |
|
|
fn_fetch_file "${latestmcbuildurl}" "${tmpdir}" "minecraft_server.${availablebuild}.jar" |
|
|
fn_fetch_file "${latestmcbuildurl}" "${tmpdir}" "minecraft_server.${availablebuild}.jar" |
|
|
echo -e "copying to ${serverfiles}...\c" |
|
|
echo -e "copying to ${serverfiles}...\c" |
|
|
fn_script_log "Copying to ${serverfiles}" |
|
|
fn_script_log "Copying to ${serverfiles}" |
|
|