From a580402d52f0a7e7135fb31c707468a50fdcb0b7 Mon Sep 17 00:00:00 2001 From: Jake Herbst Date: Fri, 20 May 2022 09:57:20 -0400 Subject: [PATCH] Fixing the git remote check to suppress stdout+stderr and actually work correctly --- scripts/update_birdnet.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/update_birdnet.sh b/scripts/update_birdnet.sh index 4a0ded6..f7fc305 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 }