From 9390d450aa631fd5706995b7d2b86be7bb9d0aec Mon Sep 17 00:00:00 2001 From: Peter Benjamin Date: Mon, 11 Apr 2022 08:51:21 -0700 Subject: [PATCH] fix: fix stderr & stdout redirect --- bin/git-browse-ci | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/git-browse-ci b/bin/git-browse-ci index 38be4aae4..440c9ce60 100755 --- a/bin/git-browse-ci +++ b/bin/git-browse-ci @@ -1,10 +1,9 @@ #!/usr/bin/env bash set -e -o pipefail - if [[ $1 == "" ]] then - branch=$(git rev-parse --abbrev-ref HEAD 2&> /dev/null) + branch=$(git rev-parse --abbrev-ref HEAD &> /dev/null) remote=$(git config branch."${branch}".remote || echo "origin") else remote=$1