fixed midnight bug

This commit is contained in:
Patrick McGuire
2021-10-13 08:08:51 -04:00
parent 51c7ff61df
commit df6508ddd6
+1 -1
View File
@@ -37,7 +37,7 @@ EOF
echo echo
echo " -$SOFAR species identified so far" echo " -$SOFAR species identified so far"
echo echo
if [ "${SOFAR}" -ge "1" ];then if [ "${SOFAR}" -ge "1" ] && ( find ${EXTRACTED}/By_Date/$(date +%Y-%m-%d) -name '*wav' &> /dev/null );then
MOST_RECENT="$(find ${EXTRACTED}/By_Date/$(date +%Y-%m-%d) \ MOST_RECENT="$(find ${EXTRACTED}/By_Date/$(date +%Y-%m-%d) \
| sort -t"%" -rk2 \ | sort -t"%" -rk2 \
| head -n1 \ | head -n1 \