|
|
@ -10,11 +10,11 @@ local commandaction="Update" |
|
|
|
local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" |
|
|
|
|
|
|
|
fn_update_factorio_dl(){ |
|
|
|
fn_fetch_file "https://www.factorio.com/get-download/${availablebuild}/headless/${factorioarch}" "${tmpdir}/factorio_headless_${factorioarch}-${availablebuild}" "factorio_headless_${factorioarch}-${availablebuild}.tar.gz" |
|
|
|
fn_dl_extract "${tmpdir}" "factorio_headless_${factorioarch}-${availablebuild}.tar.gz" "${tmpdir}/factorio_headless_${factorioarch}-${availablebuild}" |
|
|
|
fn_fetch_file "https://www.factorio.com/get-download/${availablebuild}/headless/${factorioarch}" "${tmpdir}" "factorio_headless_${factorioarch}-${availablebuild}.tar.gz" |
|
|
|
fn_dl_extract "${tmpdir}" "factorio_headless_${factorioarch}-${availablebuild}.tar.gz" "${tmpdir}" |
|
|
|
echo -e "copying to ${filesdir}...\c" |
|
|
|
fn_script_log "Copying to ${filesdir}" |
|
|
|
cp -R "${tmpdir}/factorio_headless_${factorioarch}-${availablebuild}/"* "${filesdir}" |
|
|
|
cp -R "${tmpdir}/"* "${filesdir}" |
|
|
|
local exitcode=$? |
|
|
|
if [ ${exitcode} -eq 0 ]; then |
|
|
|
fn_print_ok_eol_nl |
|
|
|