Update extract_new_birdsounds.sh

This commit is contained in:
mcguirepr89
2021-10-03 09:09:41 -04:00
committed by GitHub
parent 9940bd9901
commit 06bb53c811
+2 -2
View File
@@ -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