mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-20 04:12:42 +00:00
Keep only 45 days on rustup mirrors
Signed-off-by: Harry Chen <i@harrychen.xyz>
This commit is contained in:
parent
81581749cf
commit
30cca3af73
@ -6,5 +6,5 @@ echo "rustup sync started"
|
|||||||
|
|
||||||
BASE_URL=${MIRROR_BASE_URL:-"https://mirrors.tuna.tsinghua.edu.cn/rustup"}
|
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}"
|
/usr/local/cargo/bin/rustup-mirror -u "${BASE_URL}" -m "${TUNASYNC_WORKING_DIR}" --gc 45
|
||||||
echo "finished"
|
echo "finished"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user