Skip to content

A live bird collage card for your Home Assistant dashboard.

Update update_birdnet.sh

Patrick McGuire95563a4d9f4c
diff --git a/scripts/update_birdnet.sh b/scripts/update_birdnet.sh
index 96792ba4..e797ac05 100755
--- a/scripts/update_birdnet.sh
+++ b/scripts/update_birdnet.sh
@@ -52,6 +52,7 @@ remove_services
remove_scripts
# Stage 2 does a git pull to fetch new things
+sudo -u${USER} git -C ${HOME}/BirdNET-Pi checkout -f || exit 1
sudo -u${USER} git -C ${HOME}/BirdNET-Pi pull -f || exit 1
# Trigger the new update_birdnet2.sh