diff options
| author | typebrook <typebrook@gmail.com> | 2019-05-02 14:32:12 +0800 |
|---|---|---|
| committer | typebrook <typebrook@gmail.com> | 2019-05-02 14:32:12 +0800 |
| commit | 4d516d3bc8ca75fd8f89ebbf67e326593c5e801b (patch) | |
| tree | f48531ff6988fe64a0bedf2b33a58361c349d90a /scripts | |
| parent | 5226aeaa0e0e7698a04bf9f3b8d55c7e5c5b93c0 (diff) | |
update
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/check_upstream.sh | 4 |
1 files changed, 4 insertions, 0 deletions
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 @@ | |||
| 2 | # origin/master is ahead of local branch $2(default to dev) | 2 | # origin/master is ahead of local branch $2(default to dev) |
| 3 | check_upstream() { | 3 | check_upstream() { |
| 4 | 4 | ||
| 5 | if [ ! -d $1 ]; then | ||
| 6 | return 0 | ||
| 7 | fi | ||
| 8 | |||
| 5 | head='dev' | 9 | head='dev' |
| 6 | if [ $# -eq 2 ] | 10 | if [ $# -eq 2 ] |
| 7 | then | 11 | then |