13 lines
296 B
Bash
13 lines
296 B
Bash
#!/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
|