diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-06-03 03:01:45 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-06-03 03:01:45 -0300 |
commit | 0dbca649ba0cfeab696c48ab2f0287e0cea934d1 (patch) | |
tree | e3e368a7d7c1b09dee122797baa220b6c26adc0c /commit-updates | |
parent | bfefcf85fed4075594372c43dc14d139120bbf88 (diff) | |
download | utils-git-0dbca649ba0cfeab696c48ab2f0287e0cea934d1.tar.gz utils-git-0dbca649ba0cfeab696c48ab2f0287e0cea934d1.tar.bz2 |
Updates
Diffstat (limited to 'commit-updates')
-rwxr-xr-x | commit-updates | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commit-updates b/commit-updates index a70d3c9..69ba4e8 100755 --- a/commit-updates +++ b/commit-updates @@ -8,7 +8,7 @@ PROJECT="$1" # Check if param is a project if [ ! -z "$PROJECT" ] && [ -z "$2" ] && ( cd $PROJECT &> /dev/null ); then - if ! git status $PROJECT | grep -q "$PROJECT (new commits)"; then + if git status 2> /dev/null && ! git status $PROJECT | grep -q "$PROJECT (new commits)"; then cd $PROJECT &> /dev/null shift fi |