From 30cca3af7323c638506e9dfb1557de039a5fb419 Mon Sep 17 00:00:00 2001 From: Harry Chen Date: Tue, 3 Mar 2020 01:25:13 +0800 Subject: [PATCH] Keep only 45 days on rustup mirrors Signed-off-by: Harry Chen --- rustup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rustup.sh b/rustup.sh index 001b7b3..a8c3c55 100755 --- a/rustup.sh +++ b/rustup.sh @@ -6,5 +6,5 @@ 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}" +/usr/local/cargo/bin/rustup-mirror -u "${BASE_URL}" -m "${TUNASYNC_WORKING_DIR}" --gc 45 echo "finished"