Skip to content

A live bird collage card for your Home Assistant dashboard.

Update extract_new_birdsounds.sh

mcguirepr8906bb53c8113f
diff --git a/scripts/extract_new_birdsounds.sh b/scripts/extract_new_birdsounds.sh
index 798f07d6..fee138ee 100755
--- a/scripts/extract_new_birdsounds.sh
+++ b/scripts/extract_new_birdsounds.sh
@@ -45,8 +45,8 @@ for h in "${SCAN_DIRS[@]}";do
# Removes old directories
if echo "${h}" | grep $(date --date="yesterday" "+%A") &> /dev/null;then
echo "Removing old directories"
- rm -df "${h}"
- rm -df "$(echo ${h} | cut -d'-' -f1-3)"
+ rm -drf "${h}"
+ rm -drf "$(echo ${h} | cut -d'-' -f1-3)"
continue
fi
# Iterates over each "Analyzed" directory