mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-06-30 23:12:45 +00:00
rustup: make gc time an env var
This commit is contained in:
parent
4e9822c03b
commit
deb2c85056
@ -5,7 +5,8 @@ cd "$TUNASYNC_WORKING_DIR"
|
|||||||
echo "rustup sync started"
|
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"}
|
||||||
|
GC=${RUSTUP_GC:-"30"}
|
||||||
|
|
||||||
/usr/local/cargo/bin/rustup-mirror -u "${BASE_URL}" -m "${TUNASYNC_WORKING_DIR}" --gc 30
|
/usr/local/cargo/bin/rustup-mirror -u "${BASE_URL}" -m "${TUNASYNC_WORKING_DIR}" --gc "${GC}"
|
||||||
echo "finished"
|
echo "finished"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user