aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2020-01-04 22:58:14 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2020-01-04 22:58:14 -0800
commit2153897b8b62604cfb7c4342593455345100614e (patch)
treee7f704e423d33c7f5b29eb5018b42c5d2f19a915
parentsnapshots-create.sh: fix cleanup bug (diff)
downloadmastermirror-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-xsnapshots-create.sh7
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}" \