aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvg <vgm+dev@devys.org>2026-08-01 15:02:36 +0200
committervg <vgm+dev@devys.org>2026-08-01 15:02:36 +0200
commitf3ad77d62a802341539ef2e95650cc7c30fba586 (patch)
tree9af1b1233162af170213feda3a684917efc5ffcd
parent8bae1cc4656ff7fa968d6e1ad15dae9bfd61ff2e (diff)
downloadshareit-f3ad77d62a802341539ef2e95650cc7c30fba586.tar.gz
shareit-f3ad77d62a802341539ef2e95650cc7c30fba586.tar.bz2
shareit-f3ad77d62a802341539ef2e95650cc7c30fba586.zip
fix purging conditionHEADmaster
Without parenthesis the .meta file is not found as I suspect the exec applies only to the latest condition.
-rwxr-xr-xshareit/purge.sh2
1 files changed, 1 insertions, 1 deletions
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 \;