2018-09-02 01:21:54 +08:00
|
|
|
#!/bin/sh
|
|
|
|
# Use this script after a release to tidy the betas
|
|
|
|
|
|
|
|
version="$1"
|
|
|
|
if [ "$version" = "" ]; then
|
2020-10-14 05:49:58 +08:00
|
|
|
echo "Syntax: $0 <version, e.g. v1.42> [delete]"
|
2018-09-02 01:21:54 +08:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
dry_run="--dry-run"
|
|
|
|
if [ "$2" = "delete" ]; then
|
|
|
|
dry_run=""
|
|
|
|
else
|
|
|
|
echo "Running in --dry-run mode"
|
|
|
|
echo "Use '$0 $version delete' to actually delete files"
|
|
|
|
fi
|
|
|
|
|
2020-06-23 23:44:42 +08:00
|
|
|
rclone ${dry_run} -vv -P --checkers 16 --transfers 16 delete \
|
2022-09-13 03:30:34 +08:00
|
|
|
--fast-list \
|
2020-06-23 23:44:42 +08:00
|
|
|
--include "/${version}**" \
|
2022-09-13 03:30:34 +08:00
|
|
|
--include "/branch/*/${version}**" \
|
2024-04-25 18:12:38 +08:00
|
|
|
beta.rclone.org:
|