From 4d516d3bc8ca75fd8f89ebbf67e326593c5e801b Mon Sep 17 00:00:00 2001 From: typebrook Date: Thu, 2 May 2019 14:32:12 +0800 Subject: update --- scripts/check_upstream.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts/check_upstream.sh') diff --git a/scripts/check_upstream.sh b/scripts/check_upstream.sh index 9c2e87a..73d2b22 100644 --- a/scripts/check_upstream.sh +++ b/scripts/check_upstream.sh @@ -2,6 +2,10 @@ # origin/master is ahead of local branch $2(default to dev) check_upstream() { + if [ ! -d $1 ]; then + return 0 + fi + head='dev' if [ $# -eq 2 ] then -- cgit v1.2.3-70-g09d2