mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-21 05:02:43 +00:00
20 lines
462 B
Bash
Executable File
20 lines
462 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
_here=`dirname $(realpath $0)`
|
|
. ${_here}/helpers/apt-download
|
|
[ -z "${LOADED_APT_DOWNLOAD}" ] && (echo "failed to load apt-download"; exit 1)
|
|
|
|
BASE_PATH="${TUNASYNC_WORKING_DIR}"
|
|
|
|
base_url=${TUNASYNC_UPSTREAM_URL:-"http://termux.net"}
|
|
|
|
ARCHES=("aarch64" "all" "arm" "i686")
|
|
|
|
for arch in ${ARCHES[@]}; do
|
|
echo "start syncing: ${arch}"
|
|
apt-download-binary "${base_url}" "stable" "main" "${arch}" "${BASE_PATH}" || true
|
|
done
|
|
|
|
echo "finished"
|