We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57b4baa commit 970dab8Copy full SHA for 970dab8
cruft_remover.sh
@@ -9,7 +9,7 @@ fi
9
10
read -rp "How many days files should be unmodified for to be considered cruft? " DAY
11
12
-readarray -t FILES < <(find "$FOLDER" -maxdepth 1 -atime -"$DAY" -type f)
+readarray -t FILES < <(find "$FOLDER" -maxdepth 1 -atime +"$DAY" -type f)
13
14
if [ "${#FILES[@]}" -eq 0 ]; then
15
echo "The folder of $FOLDER does not contains any file"
0 commit comments