mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-18 19:22:44 +00:00
parent
c663ed7759
commit
d020acd51f
18
bazel-apt.sh
Executable file
18
bazel-apt.sh
Executable file
@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
# requires: wget curl
|
||||
set -e
|
||||
set -o pipefail
|
||||
|
||||
_here=`dirname $(realpath $0)`
|
||||
apt_sync="${_here}/apt-sync.py"
|
||||
|
||||
BASE_PATH="${TUNASYNC_WORKING_DIR}"
|
||||
BASE_URL=${TUNASYNC_UPSTREAM_URL:-"https://storage.googleapis.com/bazel-apt"}
|
||||
|
||||
export REPO_SIZE_FILE=/tmp/reposize.$RANDOM
|
||||
|
||||
"$apt_sync" --delete "$BASE_URL" stable jdk1.8 amd64 "$BASE_PATH"
|
||||
|
||||
echo "APT finished"
|
||||
|
||||
"${_here}/helpers/size-sum.sh" $REPO_SIZE_FILE --rm
|
Loading…
x
Reference in New Issue
Block a user