Thanks for the script Cpt. Chaz!
I adjusted it for multiple directories, in case somebody needs it:
#!/bin/bash
echo "Searching for (and deleting) Files older than 3 Days"
echo "Should Only Take a Second"
# Array of directories to clean
directories=(
"/mnt/user/Downloads/completed/f1/"
"/mnt/user/Downloads/completed/f2/"
"/mnt/user/Downloads/completed/f3/"
# Add more directories as needed
)
# Iterate through each directory
for dir in "${directories[@]}"; do
echo "Processing directory: $dir"
find "$dir" -mtime +3 -exec rm -rfv {} +
done
echo "Done for Now"
echo "See Ya Tomorrow"
I sent a pull request with the new version id to spaceinvaderOne.
In the mean time, as a work-around until he has updated his docker, you can change the docker repository of the template to mattti/macinabox .
The only change is the working Catalina version.