temporary fix for midnight bug

This commit is contained in:
mcguirepr89
2022-02-17 07:29:05 -05:00
parent bb60d19975
commit c0c6d68849
+6 -6
View File
@@ -27,12 +27,12 @@ for h in "${SCAN_DIRS[@]}";do
# Field 5: Confidence
# Removes old directories
if echo "${h}" | grep $(date --date="yesterday" "+%A") &> /dev/null;then
echo "Removing old directories"
rm -drf "${h}"
rm -drf "$(echo ${h} | cut -d'-' -f1-3)"
continue
fi
#if echo "${h}" | grep $(date --date="yesterday" "+%A") &> /dev/null;then
# echo "Removing old directories"
# rm -drf "${h}"
# rm -drf "$(echo ${h} | cut -d'-' -f1-3)"
# continue
#fi
# Iterates over each "Analyzed" directory
for i in $(find ${h} -name '*csv' | sort );do