Browse Source

unzip to a directory

pull/3002/head
Daniel Gibbs 5 years ago
parent
commit
e5bcf5595c
  1. 4
      lgsm/functions/update_jediknight2.sh

4
lgsm/functions/update_jediknight2.sh

@ -10,9 +10,9 @@ local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
fn_update_jk2_dl(){
fn_fetch_file "https://github.com/mvdevs/jk2mv/releases/download/${remotebuild}/jk2mv-v${remotebuild}-dedicated.zip" "" "" "" "${tmpdir}" "jk2mv-${remotebuild}-dedicated.zip" "" "norun" "noforce" "nomd5"
fn_dl_extract "${tmpdir}" "jk2mv-${remotebuild}-dedicated.zip" "${tmpdir}"
fn_dl_extract "${tmpdir}" "jk2mv-${remotebuild}-dedicated.zip" "${tmpdir}/jk2mv-v${remotebuild}-dedicated"
echo -e "copying to ${serverfiles}...\c"
cp -R "${tmpdir}/murmur-static_${jk2arch}-${remotebuild}/"* "${serverfiles}"
cp -R "${tmpdir}/jk2mv-v${remotebuild}-dedicated/"* "${serverfiles}"
local exitcode=$?
if [ "${exitcode}" == "0" ]; then
fn_print_ok_eol_nl

Loading…
Cancel
Save