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"