From patchwork Tue Mar 21 10:14:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jani Nikula X-Patchwork-Id: 9636341 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C3F576020B for ; Tue, 21 Mar 2017 10:14:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BD27627B13 for ; Tue, 21 Mar 2017 10:14:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AF23527D8D; Tue, 21 Mar 2017 10:14:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7888C27B13 for ; Tue, 21 Mar 2017 10:14:58 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0C3206E33E; Tue, 21 Mar 2017 10:14:58 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTPS id C50F66E334 for ; Tue, 21 Mar 2017 10:14:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=intel; t=1490091294; x=1521627294; h=from:to:cc:subject:date:message-id; bh=IlsqlMZpB1dAQSPAcMp+kK4cYHm0a9vbRFy0xkDT5b0=; b=fBz4zUdgUczfz5a5dOm7cSTr7vA4eKIBHy1HDU48xQXt2c/NpeiMNFns thHDYPqNJru4pfHAnkNnl8Q0Md6fGQ==; Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Mar 2017 03:14:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,198,1486454400"; d="scan'208";a="836967224" Received: from jnikula-mobl.fi.intel.com (HELO localhost) ([10.237.72.162]) by FMSMGA003.fm.intel.com with ESMTP; 21 Mar 2017 03:14:53 -0700 From: Jani Nikula To: intel-gfx@lists.freedesktop.org Date: Tue, 21 Mar 2017 12:14:33 +0200 Message-Id: <8d9f9d06aabb924ad458a6e4084c2668a4677059.1490091134.git.jani.nikula@intel.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: In-Reply-To: References: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Cc: jani.nikula@intel.com Subject: [Intel-gfx] [PATCH 7/8] dim: use grep -c instead of grep|wc X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP Fix shellcheck SC2126: Consider using grep -c instead of grep|wc. Signed-off-by: Jani Nikula --- Makefile | 1 - dim | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index fe7e44ad69d9..78087f669221 100644 --- a/Makefile +++ b/Makefile @@ -28,7 +28,6 @@ SC_EXCLUDE := \ -e SC2090 \ -e SC2119 \ -e SC2120 \ - -e SC2126 \ -e SC2143 shellcheck: diff --git a/dim b/dim index 16e489c0b508..53221de9171c 100755 --- a/dim +++ b/dim @@ -496,7 +496,7 @@ function dim_rebuild_tip rerere=$DIM_PREFIX/drm-rerere cd $rerere - if [[ $(git status --porcelain | grep -v "^[ ?][ ?]" | wc -l) -gt 0 ]]; then + if [[ $(git status --porcelain | grep -c -v "^[ ?][ ?]") -gt 0 ]]; then warn_or_fail "integration configuration file $integration_config not commited" fi