mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-19 11:42:43 +00:00
11 lines
256 B
Bash
Executable File
11 lines
256 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
cd "$TUNASYNC_WORKING_DIR"
|
|
echo "rustup sync started"
|
|
|
|
BASE_URL=${MIRROR_BASE_URL:-"https://mirrors.tuna.tsinghua.edu.cn/rustup"}
|
|
|
|
/usr/local/cargo/bin/rustup-mirror -u "${BASE_URL}" -m "${TUNASYNC_WORKING_DIR}" --gc 45
|
|
echo "finished"
|