From cec198af658418d5ab156b77cad90afb2956b620 Mon Sep 17 00:00:00 2001 From: ehpersonal38 <103586016+ehpersonal38@users.noreply.github.com> Date: Tue, 24 May 2022 18:47:53 -0400 Subject: [PATCH] hotfix I think this is right? --- scripts/update_birdnet_snippets.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/update_birdnet_snippets.sh b/scripts/update_birdnet_snippets.sh index fb3372c..612ee4d 100755 --- a/scripts/update_birdnet_snippets.sh +++ b/scripts/update_birdnet_snippets.sh @@ -66,3 +66,9 @@ if systemctl list-unit-files pushed_notifications.service;then sudo rm -f /usr/lib/systemd/system/pushed_notifications.service sudo rm $HOME/BirdNET-Pi/templates/pushed_notifications.service fi +if [ ! -f $HOME/BirdNET-Pi/model/labels.txt ] +then + unzip $HOME/BirdNET-Pi/model/labels_l18n.zip labels_en.txt \ + -d $HOME/BirdNET-Pi/model + mv $HOME/BirdNET-Pi/model/labels_en.txt $HOME/BirdNET-Pi/model/labels.txt +fi \ No newline at end of file