A live bird collage card for your Home Assistant dashboard.
re-try pip install command, but purge the cache first
frederika871ce5634b3
diff --git a/scripts/install_birdnet.sh b/scripts/install_birdnet.shindex 161ea56d..16a97cb4 100755--- a/scripts/install_birdnet.sh+++ b/scripts/install_birdnet.sh@@ -31,7 +31,14 @@ install_birdnet() {source ./birdnet/bin/activatepip3 install wheelget_tf_whl- pip3 install -U -r ./requirements_custom.txt+ LOOP_COUNT=2+ while ! pip3 install -U -r ./requirements_custom.txt+ do+ LOOP_COUNT=$(( LOOP_COUNT - 1 ))+ pip3 cache purge+ [ $LOOP_COUNT == 0 ] && exit 1+ sleep 5+ done}[ -d ${RECS_DIR} ] || mkdir -p ${RECS_DIR} &> /dev/null