build: improve beta tidy script

This commit is contained in:
Nick Craig-Wood 2019-02-01 16:40:55 +00:00
parent 4e4feebf0a
commit 0c4ed35b9b

View File

@ -3,7 +3,7 @@
version="$1" version="$1"
if [ "$version" = "" ]; then if [ "$version" = "" ]; then
echo "Syntax: $0 <version> [delete]" echo "Syntax: $0 <version, eg v1.42> [delete]"
exit 1 exit 1
fi fi
dry_run="--dry-run" dry_run="--dry-run"
@ -14,4 +14,4 @@ else
echo "Use '$0 $version delete' to actually delete files" echo "Use '$0 $version delete' to actually delete files"
fi fi
rclone ${dry_run} --fast-list -P --checkers 16 --transfers 16 delete --include "**/${version}**" memstore:beta-rclone-org rclone ${dry_run} -P --fast-list --checkers 16 --transfers 16 delete --include "**${version}**" memstore:beta-rclone-org