diff options
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 |