Skip to content

Commit 970dab8

Browse files
committed
Fix flag
1 parent 57b4baa commit 970dab8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cruft_remover.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ fi
99

1010
read -rp "How many days files should be unmodified for to be considered cruft? " DAY
1111

12-
readarray -t FILES < <(find "$FOLDER" -maxdepth 1 -atime -"$DAY" -type f)
12+
readarray -t FILES < <(find "$FOLDER" -maxdepth 1 -atime +"$DAY" -type f)
1313

1414
if [ "${#FILES[@]}" -eq 0 ]; then
1515
echo "The folder of $FOLDER does not contains any file"

0 commit comments

Comments
 (0)