exclude Downloads dir itself from clear-downloads

This commit is contained in:
2025-11-07 18:29:05 -05:00
parent a5ec10426d
commit b8eeaf5c35

View File

@@ -1,4 +1,4 @@
#!/usr/bin/bash #!/usr/bin/bash
# clear all files in ~/Downloads older than 24h # clear all files in ~/Downloads older than 24h
fd --changed-before 1d --full-path ~/Downloads --exec-batch rm -rf fd --changed-before 1d --search-path ~/Downloads --exec-batch rm -rf