git check
This commit is contained in:
parent
968e4544cc
commit
1af9672ce1
1 changed files with 3 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
# Check for new commits in remote
|
||||||
git -C "$1" remote update
|
|
||||||
|
git -C "$1" remote update > /dev/null 2>&1
|
||||||
|
|
||||||
commits=$(git -C "$1" status | grep -o "[0-9*]\scommit" | cut -d " " -f 1)
|
commits=$(git -C "$1" status | grep -o "[0-9*]\scommit" | cut -d " " -f 1)
|
||||||
[ -z "$commits" ] && exit
|
[ -z "$commits" ] && exit
|
||||||
|
|
Loading…
Reference in a new issue