aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-05-02 18:39:59 -0300
committerEuAndreh <eu@euandre.org>2024-05-02 18:39:59 -0300
commit7216f57462845c82461998cfb54c4409ec9e9392 (patch)
tree1ef7abdd53e3804110e0e59f36f87b8c2560d5b2
parentbin/yt: Replace "youtube-dl" with "yt-dlp" here too (diff)
downloaddotfiles-7216f57462845c82461998cfb54c4409ec9e9392.tar.gz
dotfiles-7216f57462845c82461998cfb54c4409ec9e9392.tar.xz
bin/gc: tmpdir: Only delete files and directories for now
-rwxr-xr-xbin/gc2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/gc b/bin/gc
index 4634f8c..50ee1b5 100755
--- a/bin/gc
+++ b/bin/gc
@@ -118,7 +118,7 @@ gc_trash() {
}
gc_tmpdir() {
- find "${TMPDIR:-/tmp}" -atime +10 -exec rm -vrf {} \; ||:
+ find "${TMPDIR:-/tmp}" '(' -type f -or -type d ')' -atime +10 -exec rm -vrf {} \; ||:
}
gc_coredump() {