A live bird collage card for your Home Assistant dashboard.
No need to see the grepping
Patrick McGuire06041195c8a1
diff --git a/scripts/update_birdnet_snippets.sh b/scripts/update_birdnet_snippets.shindex 5e63ff71..1f301433 100755--- a/scripts/update_birdnet_snippets.sh+++ b/scripts/update_birdnet_snippets.sh@@ -5,11 +5,11 @@ trap 'exit 1' SIGINT SIGHUPUSER=$(awk -F: '/1000/ {print $1}' /etc/passwd)HOME=$(awk -F: '/1000/ {print $6}' /etc/passwd)my_dir=$HOME/BirdNET-Pi/scripts-if ! grep python3 <(head -n1 $my_dir/analyze.py);then+if ! grep python3 <(head -n1 $my_dir/analyze.py) &>/dev/null;thenecho "Ensure all python scripts use the virtual environment"sed -si "1 i\\#\!$HOME/BirdNET-Pi/birdnet/bin/python3" $my_dir/*.pyfi-if ! grep PRIVACY_MODE /etc/birdnet/birdnet.conf;then+if ! grep PRIVACY_MODE /etc/birdnet/birdnet.conf &>/dev/null;thensudo -u${USER} echo "PRIVACY_MODE=off" >> /etc/birdnet/birdnet.conffiif ! which lsof &>/dev/null;then