mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-20 04:12:42 +00:00
enable --overwrite (tuna/issues/840)
This commit is contained in:
parent
a4ca358648
commit
cd20ed71b6
2
pub.sh
2
pub.sh
@ -4,4 +4,4 @@ set -e
|
||||
BASE_URL=${MIRROR_BASE_URL:-"https://mirrors.tuna.tsinghua.edu.cn/dart-pub"}
|
||||
UPSTREAM_URL=${TUNASYNC_UPSTREAM_URL:-"https://pub.dartlang.org/api"}
|
||||
echo "From $UPSTREAM_URL to $BASE_URL"
|
||||
exec /pub-cache/bin/pub_mirror --upstream "$UPSTREAM_URL" --verbose --delete --connections 10 --concurrency 10 "$TUNASYNC_WORKING_DIR" "$BASE_URL"
|
||||
exec /pub-cache/bin/pub_mirror --upstream "$UPSTREAM_URL" --verbose --overwrite --delete --connections 10 --concurrency 10 "$TUNASYNC_WORKING_DIR" "$BASE_URL"
|
||||
|
Loading…
x
Reference in New Issue
Block a user