fix: fix stderr & stdout redirect

This commit is contained in:
Peter Benjamin 2022-04-11 08:51:21 -07:00
parent 11a2801231
commit 9390d450aa

View file

@ -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