From 860ced15e6dc83fe6009b4e8f7f7ec63398f440d Mon Sep 17 00:00:00 2001 From: Patrick McGuire Date: Sat, 16 Oct 2021 12:18:57 -0400 Subject: [PATCH] fix for clearing all data --- scripts/species_notifier.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/species_notifier.sh b/scripts/species_notifier.sh index 5a2bec5..9cb76e7 100755 --- a/scripts/species_notifier.sh +++ b/scripts/species_notifier.sh @@ -6,6 +6,8 @@ source /etc/birdnet/birdnet.conf lastcheck="$(mktemp)" +[ -f ${IDFILE} ] || touch ${IDFILE} + cp ${IDFILE} ${lastcheck} /home/pi/BirdNET-Pi/scripts/new_update_species.sh