This needs a proper test to work

This commit is contained in:
Patrick McGuire
2022-05-20 10:04:06 -04:00
committed by GitHub
parent a580402d52
commit 24e20fb438
+4 -5
View File
@@ -12,13 +12,12 @@ branch="main"
while getopts ":r:b:" o; do
case "${o}" in
r)
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}
else
echo "Error: remote '$remote' not found. Add the upstream remote to your repository and try again."
exit 1
}
fi
;;
b)
branch=${OPTARG}