lidarr-on-steroids/root/usr/local/bin/clean-downloads.sh

13 lines
296 B
Bash
Executable File

#!/bin/bash
echo "Info|Lidarr event: $lidarr_eventtype" >&2
# Handle Lidarr Test event
if [[ "$lidarr_eventtype" = "Test" ]]; then
echo "Info|Script was test executed successfully." >&2
exit 0
fi
echo "Info|Cleaning empty folders" >&2
find /downloads -type d -empty -print -delete >&2