diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-09-16 19:41:33 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-09-16 19:41:33 -0300 |
commit | 926005cf2b2f59f2831c4c292da90d0e136b7c4c (patch) | |
tree | 495f033f87f2ce2fa53538cf9dfe930d323e0b9b /commit-updates | |
parent | f353440268647fc4d600ac71f0706cc9e54c2168 (diff) | |
download | utils-git-926005cf2b2f59f2831c4c292da90d0e136b7c4c.tar.gz utils-git-926005cf2b2f59f2831c4c292da90d0e136b7c4c.tar.bz2 |
Misc fixes
Diffstat (limited to 'commit-updates')
-rwxr-xr-x | commit-updates | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/commit-updates b/commit-updates index 2a71c1d..9fe77d7 100755 --- a/commit-updates +++ b/commit-updates @@ -11,10 +11,10 @@ GIT="hit" # Check if param is a project if [ ! -z "$PROJECT" ] && [ -z "$2" ] && ( cd $PROJECT &> /dev/null ); then - if ! git status &> /dev/null; then + if ! $GIT status &> /dev/null; then cd $PROJECT &> /dev/null shift - elif ! git status $PROJECT | grep -q "$PROJECT (new commits)"; then + elif ! $GIT status $PROJECT | grep -q "$PROJECT (new commits)"; then cd $PROJECT &> /dev/null shift fi |