From f3ad77d62a802341539ef2e95650cc7c30fba586 Mon Sep 17 00:00:00 2001 From: vg Date: Sat, 1 Aug 2026 15:02:36 +0200 Subject: fix purging condition Without parenthesis the .meta file is not found as I suspect the exec applies only to the latest condition. --- shareit/purge.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shareit/purge.sh b/shareit/purge.sh index 961cbb1..a83f033 100755 --- a/shareit/purge.sh +++ b/shareit/purge.sh @@ -1,4 +1,4 @@ #!/bin/sh -find /files/ -type f -mtime +10 ! -name '*.meta' \ +find /files/ '(' -type f -mtime +10 ! -name '*.meta' ')' \ -exec rm {} \; -exec rm {}.meta \; -- cgit v1.2.3