From 06bb53c8113fa9f6831a15c8ec2eca4edda1ebf7 Mon Sep 17 00:00:00 2001 From: mcguirepr89 <60325264+mcguirepr89@users.noreply.github.com> Date: Sun, 3 Oct 2021 09:09:41 -0400 Subject: [PATCH] Update extract_new_birdsounds.sh --- scripts/extract_new_birdsounds.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/extract_new_birdsounds.sh b/scripts/extract_new_birdsounds.sh index 798f07d..fee138e 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