A live bird collage card for your Home Assistant dashboard.
Updating git remote check to use remote string from argument
Jake Herbst7a58b1cc54e7
diff --git a/scripts/update_birdnet.sh b/scripts/update_birdnet.shindex bea167b2..93dd5b8c 100755--- a/scripts/update_birdnet.sh+++ b/scripts/update_birdnet.sh@@ -12,9 +12,11 @@ branch="main"while getopts ":r:b:" o; docase "${o}" inr)- if git remote show $remote &>/dev/null;then- remote=${OPTARG}- else+ remote=${OPTARG}+ git remote show $remote > /dev/null 2>&1+ ret_val=$?++ if [ $ret_val -ne 0 ]; thenecho "Error: remote '$remote' not found. Add the upstream remote to your repository and try again."exit 1fi