diff options
author | 2020-01-04 22:58:14 -0800 | |
---|---|---|
committer | 2020-01-04 22:58:14 -0800 | |
commit | 2153897b8b62604cfb7c4342593455345100614e (patch) | |
tree | e7f704e423d33c7f5b29eb5018b42c5d2f19a915 | |
parent | snapshots-create.sh: fix cleanup bug (diff) | |
download | mastermirror-scripts-2153897b8b62604cfb7c4342593455345100614e.tar.gz mastermirror-scripts-2153897b8b62604cfb7c4342593455345100614e.tar.bz2 mastermirror-scripts-2153897b8b62604cfb7c4342593455345100614e.zip |
snapshots-create.sh: fix cleanup code
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rwxr-xr-x | snapshots-create.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/snapshots-create.sh b/snapshots-create.sh index d03c1b5..b397754 100755 --- a/snapshots-create.sh +++ b/snapshots-create.sh @@ -371,8 +371,11 @@ rm -v -f \ \( \ -regex '.*/(portage|gentoo)-[0-9]{6}.*' \ -o \ - -name 'snapshot-exclude*' \ - \) + -name 'snapshot-exclude.*' \ + -o \ + -name orig + \) \ + -delete # Cleanup old snapshots /usr/bin/find \ "${UPLOAD}" \ |