From e6019c238b9f46c77a7eb667031f2c7da4eda71d Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Wed, 30 Aug 2017 16:56:20 -0700 Subject: [PATCH] Fix gh commands --- assets/default/bin/ghp | 2 +- assets/default/bin/ghpr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/default/bin/ghp b/assets/default/bin/ghp index 980ec21..335dd3a 100755 --- a/assets/default/bin/ghp +++ b/assets/default/bin/ghp @@ -12,7 +12,7 @@ if [[ "$1" == "" ]]; then echo "This function will convert the URL into an ssh url and" echo "then it will execute git pull --edit --no-ff to merge." - return + exit 1 fi # Expects $* to be in the form of htts://github.com/user/repo branch diff --git a/assets/default/bin/ghpr b/assets/default/bin/ghpr index ca89ace..249efb0 100755 --- a/assets/default/bin/ghpr +++ b/assets/default/bin/ghpr @@ -15,7 +15,7 @@ if [[ "$1" == "" ]]; then echo "This function will fetch and clone the pull request as" echo "a branch." - return + exit 1 elif [[ "$2" == "" ]]; then # No remote was supplied PRNUM="$1"