diff --git a/dev-support/test-patch.sh b/dev-support/test-patch.sh index 5d73cd534a9..64c31a53c22 100755 --- a/dev-support/test-patch.sh +++ b/dev-support/test-patch.sh @@ -632,7 +632,7 @@ checkLineLengths () { #see http://en.wikipedia.org/wiki/Diff#Unified_format MAX_LINE_LENGTH_PATCH=`expr $MAX_LINE_LENGTH + 1` - lines=`cat $PATCH_DIR/patch | grep "^+" | grep -v "^@@" | grep -v "^+++" | grep -v "import" | awk -v len="$MAX_LINE_LENGTH_PATCH" 'length ($0) > len' + lines=`cat $PATCH_DIR/patch | grep "^+" | grep -v "^@@" | grep -v "^+++" | grep -v "import" | awk -v len="$MAX_LINE_LENGTH_PATCH" 'length ($0) > len'` ll=`echo "$lines" | wc -l` if [[ "$ll" -gt "$MAX_LINE_LENGTH_PATCH" ]]; then JIRA_COMMENT="$JIRA_COMMENT