From bf6113ce61e294fd518891ca62e3032561dba4df Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Tue, 19 Oct 2021 16:36:17 +0200 Subject: [PATCH] Unset BROWSER variable to avoid gh/yarn conflict --- script/ghci | 1 + script/ghco | 1 + script/ghpr | 1 + 3 files changed, 3 insertions(+) diff --git a/script/ghci b/script/ghci index 736cfa3..e51a06f 100755 --- a/script/ghci +++ b/script/ghci @@ -5,6 +5,7 @@ set -e export GH_NO_UPDATE_NOTIFIER=1 +unset BROWSER # GitHub CLI returns non-zero error code if checks are not complete: ghoutput=$(gh pr checks || true) diff --git a/script/ghco b/script/ghco index 6e17121..688c6e9 100755 --- a/script/ghco +++ b/script/ghco @@ -4,6 +4,7 @@ set -e export GH_NO_UPDATE_NOTIFIER=1 +unset BROWSER if [ "$1" = '-a' ]; then cmd='gh pr list --limit 100' diff --git a/script/ghpr b/script/ghpr index 07d5fb0..6b3727c 100755 --- a/script/ghpr +++ b/script/ghpr @@ -3,6 +3,7 @@ # Open or create a GitHub PR in the browser export GH_NO_UPDATE_NOTIFIER=1 +unset BROWSER currentbranch="$(git bn)" if [ "$currentbranch" = "staging" ] || [ "$currentbranch" = "master" ]; then