aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcommit-updates2
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