Skip to content

A live bird collage card for your Home Assistant dashboard.

Fixing the git remote check to suppress stdout+stderr and actually work correctly

Jake Herbsta580402d52f0
diff --git a/scripts/update_birdnet.sh b/scripts/update_birdnet.sh
index 4a0ded69..f7fc305e 100755
--- a/scripts/update_birdnet.sh
+++ b/scripts/update_birdnet.sh
@@ -15,7 +15,7 @@ while getopts ":r:b:" o; do
remote=${OPTARG}
# Ensure that git remote is configured
- git remote show $remote 1&> /dev/null || {
+ git remote show $remote > /dev/null 2>&1 || {
echo "Error: remote '$remote' not found. Add the upstream remote to your repository and try again."
exit 1
}