From 9337b79e44df6957432d53ce8a2933d9bc3a41a8 Mon Sep 17 00:00:00 2001 From: Andreas Kempe <kempe@lysator.liu.se> Date: Fri, 6 Jun 2025 21:40:52 +0200 Subject: [PATCH] hina: ftprsync: send find output to /dev/null We do not need Cron mail every time find deletes left over tmp directories. The script has run long enough for us to be somewhat sure it works. --- files/hina/ftprsync/ftprsync.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/hina/ftprsync/ftprsync.sh b/files/hina/ftprsync/ftprsync.sh index db9c87e..29acbf8 100755 --- a/files/hina/ftprsync/ftprsync.sh +++ b/files/hina/ftprsync/ftprsync.sh @@ -87,7 +87,7 @@ then fi fi -find "$LOCALREPO" -name '.~tmp~' -exec rm -r {} \; +find "$LOCALREPO" -name '.~tmp~' -exec rm -r {} \; >/dev/null 2>&1 for file in `find $LOGFILEDIR -name "$LOGFILEPREFIX.*" | sort -n -r | tail +$NUM_LOGFILES` do -- GitLab