A live bird collage card for your Home Assistant dashboard.
This needs a proper test to work
Patrick McGuire24e20fb438a1
diff --git a/scripts/update_birdnet.sh b/scripts/update_birdnet.shindex f7fc305e..bea167b2 100755--- a/scripts/update_birdnet.sh+++ b/scripts/update_birdnet.sh@@ -12,13 +12,12 @@ branch="main"while getopts ":r:b:" o; docase "${o}" inr)- remote=${OPTARG}-- # Ensure that git remote is configured- git remote show $remote > /dev/null 2>&1 || {+ if git remote show $remote &>/dev/null;then+ remote=${OPTARG}+ elseecho "Error: remote '$remote' not found. Add the upstream remote to your repository and try again."exit 1- }+ fi;;b)branch=${OPTARG}