diff options
| author | vg <vgm+dev@devys.org> | 2026-08-01 15:02:36 +0200 |
|---|---|---|
| committer | vg <vgm+dev@devys.org> | 2026-08-01 15:02:36 +0200 |
| commit | f3ad77d62a802341539ef2e95650cc7c30fba586 (patch) | |
| tree | 9af1b1233162af170213feda3a684917efc5ffcd | |
| parent | 8bae1cc4656ff7fa968d6e1ad15dae9bfd61ff2e (diff) | |
| download | shareit-master.tar.gz shareit-master.tar.bz2 shareit-master.zip | |
Without parenthesis the .meta file is not found as I suspect the exec
applies only to the latest condition.
| -rwxr-xr-x | shareit/purge.sh | 2 |
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 \; |
