A live bird collage card for your Home Assistant dashboard.
fix: make sure the regex is not being interpreted as an option, this was causing a unneeded services restarts
frederikf33a9d24a724
diff --git a/scripts/update_birdnet_snippets.sh b/scripts/update_birdnet_snippets.shindex facfeb24..82198961 100755--- a/scripts/update_birdnet_snippets.sh+++ b/scripts/update_birdnet_snippets.sh@@ -167,12 +167,12 @@ if ! [ -f "$HOME/BirdNET-Pi/templates/$TMP_MOUNT" ]; thenchown $USER:$USER "$HOME/BirdNET-Pi/templates/$TMP_MOUNT"fi-if ! grep '-P log' $HOME/BirdNET-Pi/templates/birdnet_log.service &>/dev/null;then+if grep -q -e '-P log' $HOME/BirdNET-Pi/templates/birdnet_log.service ;thensed -i "s/-P log/--path log/" ~/BirdNET-Pi/templates/birdnet_log.servicesystemctl daemon-reload && restart_services.shfi-if ! grep '-P terminal' $HOME/BirdNET-Pi/templates/web_terminal.service &>/dev/null;then+if grep -q -e '-P terminal' $HOME/BirdNET-Pi/templates/web_terminal.service ;thensed -i "s/-P terminal/--path terminal/" ~/BirdNET-Pi/templates/web_terminal.servicesystemctl daemon-reload && restart_services.shfi