]> gitweb.fluxo.info Git - utils-git.git/commitdiff
Updates
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 3 Jun 2017 06:02:51 +0000 (03:02 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 3 Jun 2017 06:02:51 +0000 (03:02 -0300)
commit-updates

index 69ba4e81971a36f4325303ffdf2bb54a50ec1867..ed3f214241f101c9696f93c806b736fb41e857a1 100755 (executable)
@@ -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 2> /dev/null && ! 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