From 926005cf2b2f59f2831c4c292da90d0e136b7c4c Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 16 Sep 2017 19:41:33 -0300 Subject: Misc fixes --- commit-updates | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'commit-updates') 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 -- cgit v1.2.3