aboutsummaryrefslogtreecommitdiff
path: root/commit-updates
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-06-03 03:07:23 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-06-03 03:07:23 -0300
commit989760735fb75847f133e16af4507589f21dbc8a (patch)
tree7e5c131c45cffb7bffce8886d83ce57ae40a1b89 /commit-updates
parent868bdbbb6871ed321d3363a1edfd2c01b31b9117 (diff)
downloadutils-git-989760735fb75847f133e16af4507589f21dbc8a.tar.gz
utils-git-989760735fb75847f133e16af4507589f21dbc8a.tar.bz2
Updates utils-git
Diffstat (limited to 'commit-updates')
-rwxr-xr-xcommit-updates4
1 files changed, 2 insertions, 2 deletions
diff --git a/commit-updates b/commit-updates
index 7bd360a..93faf12 100755
--- a/commit-updates
+++ b/commit-updates
@@ -8,10 +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; 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