From f8c3f59f3d4181e06d0de6b2048879aef72606e7 Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Tue, 8 Aug 2023 07:17:05 -0700 Subject: snapshots-create.sh: hopefully make this script entirely quiet for normal runs Signed-off-by: Robin H. Johnson --- snapshots-create.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/snapshots-create.sh b/snapshots-create.sh index 9edbd36..06b9723 100755 --- a/snapshots-create.sh +++ b/snapshots-create.sh @@ -362,12 +362,13 @@ write_time_log "END SYMLINK $(date -u)" write_time_log "START CLEANUP $(date -u)" # Cleanup immediate stuff -rm -v -f \ +rm -f \ "${TEMP}"/orig \ "${TEMP}"/"${FILENAME%.bz2}"{.bz2,.xz,}{,.umd5sum} \ "${TEMP}"/"${FILENAME_NEW%.xz}"{.bz2,.xz,}{,.umd5sum} \ "${TEMP}"/"${EXCLUSION_LIST}" \ || exit $? + # Cleanup older stuff that might have leaked /usr/bin/find \ "${TEMP}" \ @@ -383,6 +384,7 @@ rm -v -f \ -name orig \ \) \ -delete + # Cleanup old snapshots /usr/bin/find \ "${UPLOAD}" \ -- cgit v1.2.3-65-gdbad