puh current config pre departure

This commit is contained in:
2025-08-03 17:18:58 -07:00
parent 55560dfcb2
commit 05cb47761a
17 changed files with 276 additions and 91 deletions

View File

@ -0,0 +1,10 @@
#!/bin/bash
TARGET_DIR="{{ working_folder }}/small_thumbs"
cd "$TARGET_DIR" || exit
# Find all files, sort them by modification time (oldest first), and delete all but the 50 most recent
ls -t | tail -n +51 | while read -r file; do
if [ -f "$file" ]; then
# echo "Deleting file: $file"
rm "$file"
fi
done