Эх сурвалжийг харах

Update delete temporary downloads command

Updated to delete directories as well as files.
ApisNecros 2 жил өмнө
parent
commit
5ec199ebf2
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      delete_temp_files

+ 1 - 1
delete_temp_files

@@ -56,7 +56,7 @@ find -regextype posix-extended -regex "^\.\/\{[0-9A-F\-]{36}\}" -mtime +7 -delet
 echo "Deleting month-old temporary downloads"
 
 cd "$DOWNLOADS"
-find ./* -maxdepth 1 -type f -mtime +30 -delete 2>/dev/null
+find ./* -maxdepth 1 -mtime +30 -delete 2>/dev/null
 
 cd "$ROAMING"
 echo "Deleting VS Code caches older than 30 days"