From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2] devtools: check wrong svg include in guides Date: Thu, 01 Nov 2018 10:27:01 +0100 Message-ID: <1782447.EoLl64vPQU@xps> References: <20181031110548.31184-1-thomas@monjalon.net> <20181031162842.19431-1-thomas@monjalon.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, john.mcnamara@intel.com, marko.kovacevic@intel.com To: Arnon Warshavsky Return-path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id B9376B62 for ; Thu, 1 Nov 2018 10:27:04 +0100 (CET) In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 01/11/2018 07:45, Arnon Warshavsky: > Hi > > >PS: the warning contains the regex. May it be improved? > > How about passing an explicit warning message to the awk instead of the > regex? Yes it is a good idea. I think it can be a separate patch. Would you like to send it please? [..] > + if [ $? -ne 0 ] ; then > + ret=1 > + fi > + > + return $ret > } > > I also noticed that there is a need to keep the return value from each > check in case the first fails and the latter succeeds No need of return code. The error is detected if there is something printed to stdout.