1
mirror of https://github.com/rclone/rclone synced 2024-10-16 01:41:12 +02:00
rclone/bin/tidy-beta
Josh Soref e4a87f772f docs: spelling: e.g.
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2020-10-28 18:16:23 +00:00

21 lines
515 B
Bash
Executable File

#!/bin/sh
# Use this script after a release to tidy the betas
version="$1"
if [ "$version" = "" ]; then
echo "Syntax: $0 <version, e.g. v1.42> [delete]"
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
rclone ${dry_run} -vv -P --checkers 16 --transfers 16 delete \
--include "/${version}**" \
--include "/branch/${version}**" \
memstore:beta-rclone-org