From 103970ddf9ec69aeba81b860ee9627b639405f74 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Fri, 26 Sep 2014 10:45:00 +0200 Subject: [PATCH] Fix wrong check for empty files The condition needs to be negated, we want to remove files where the grep for non-empty lines does not succeed. Change-Id: I0111bedcd3bb4affde8b9bd7cd2a21e6849c1513 --- jenkins/scripts/common_translation_update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkins/scripts/common_translation_update.sh b/jenkins/scripts/common_translation_update.sh index 75ace6d70f..25110b2448 100644 --- a/jenkins/scripts/common_translation_update.sh +++ b/jenkins/scripts/common_translation_update.sh @@ -290,7 +290,7 @@ function filter_commits () for f in `git diff --cached --name-only --diff-filter=A` do # Files should have at least one non-empty msgid string. - if grep -q 'msgid "[^"]' "$f" ; then + if ! grep -q 'msgid "[^"]' "$f" ; then git reset -q "$f" rm "$f" fi