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

This commit is contained in:
Jake Herbst
2022-05-20 09:57:20 -04:00
parent ac0bccebfc
commit a580402d52
+1 -1
View File
@@ -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
}