aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-06-03 03:03:50 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-06-03 03:03:50 -0300
commit868bdbbb6871ed321d3363a1edfd2c01b31b9117 (patch)
tree310a1cab8d5fb67165af7bce2985a7439d694989
parent1b0c6ae2b62ed57ee4d5c565b7d372166ca9f830 (diff)
downloadutils-git-868bdbbb6871ed321d3363a1edfd2c01b31b9117.tar.gz
utils-git-868bdbbb6871ed321d3363a1edfd2c01b31b9117.tar.bz2
Updates
-rwxr-xr-xcommit-updates5
1 files changed, 4 insertions, 1 deletions
diff --git a/commit-updates b/commit-updates
index ed3f214..7bd360a 100755
--- a/commit-updates
+++ b/commit-updates
@@ -8,7 +8,10 @@ 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; then
+ cd $PROJECT &> /dev/null
+ shift
+ elif git status $PROJECT | grep -q "$PROJECT (new commits)"; then
cd $PROJECT &> /dev/null
shift
fi