File: tidy-beta

package info (click to toggle)
rclone 1.45-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 24,300 kB
  • sloc: python: 364; sh: 255; makefile: 190; xml: 30
file content (17 lines) | stat: -rwxr-xr-x 453 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
# Use this script after a release to tidy the betas

version="$1"
if [ "$version" = "" ]; then
    echo "Syntax: $0 <version> [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} --fast-list -P --checkers 16 --transfers 16 delete --include "**/${version}**" memstore:beta-rclone-org