From patchwork Wed Aug 23 10:10:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 9917065 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 8D9D0602CB for ; Wed, 23 Aug 2017 10:15:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7F5022886B for ; Wed, 23 Aug 2017 10:15:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 74357288B6; Wed, 23 Aug 2017 10:15:37 +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.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (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 B75162886B for ; Wed, 23 Aug 2017 10:15:36 +0000 (UTC) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 6355FA7B; Wed, 23 Aug 2017 10:15:35 +0000 (UTC) X-Original-To: ltsi-dev@lists.linuxfoundation.org Delivered-To: ltsi-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id B4368A67 for ; Wed, 23 Aug 2017 10:15:33 +0000 (UTC) X-Greylist: delayed 00:05:01 by SQLgrey-1.7.6 Received: from andre.telenet-ops.be (andre.telenet-ops.be [195.130.132.53]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 646F31B3 for ; Wed, 23 Aug 2017 10:15:33 +0000 (UTC) Received: from ayla.of.borg ([84.195.106.246]) by andre.telenet-ops.be with bizsmtp id 0aAV1w00K5JzmfG01aAV40; Wed, 23 Aug 2017 12:10:30 +0200 Received: from ramsan.of.borg ([192.168.97.29] helo=ramsan) by ayla.of.borg with esmtp (Exim 4.86_2) (envelope-from ) id 1dkScG-0004HU-KR; Wed, 23 Aug 2017 12:10:28 +0200 Received: from geert by ramsan with local (Exim 4.86_2) (envelope-from ) id 1dkScH-0001gl-MF; Wed, 23 Aug 2017 12:10:29 +0200 From: Geert Uytterhoeven To: Greg Kroah-Hartman Date: Wed, 23 Aug 2017 12:10:21 +0200 Message-Id: <1503483022-6452-1-git-send-email-geert+renesas@glider.be> X-Mailer: git-send-email 2.7.4 Cc: ltsi-dev@lists.linuxfoundation.org, Geert Uytterhoeven Subject: [LTSI-dev] [PATCH ltsi-kernel 1/2] generate_git: Fix check for existence of series file X-BeenThere: ltsi-dev@lists.linuxfoundation.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: "A list to discuss patches, development, and other things related to the LTSI project" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: ltsi-dev-bounces@lists.linuxfoundation.org Errors-To: ltsi-dev-bounces@lists.linuxfoundation.org X-Virus-Scanned: ClamAV using ClamSMTP $SERIES always contains at least the string "/series", so the check for a zero-length string never triggers. To fix this, check for the existence of the file instead. Signed-off-by: Geert Uytterhoeven --- scripts/generate_git | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/generate_git b/scripts/generate_git index 1eb4462bca67f0cb..248939a5af437257 100755 --- a/scripts/generate_git +++ b/scripts/generate_git @@ -26,7 +26,7 @@ fi DIR=`dirname $0 |sed 's/scripts$//'` SERIES=$DIR/series -if [ -z "$SERIES" ]; then +if [ ! -f "$SERIES" ]; then echo Cant find series file at $SERIES exit 1 fi