> -----Original Message----- > From: Ferruh Yigit [mailto:ferruh.yi...@intel.com] > Sent: Thursday, April 19, 2018 4:25 PM > To: Kuusisaari, Juhamatti <juhamatti.kuusisa...@coriant.com>; > tho...@monjalon.net > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2 2/2] devtools: improve kernel script > execution check > > On 4/19/2018 1:00 PM, Juhamatti Kuusisaari wrote: > > Handle properly a case where DPDK_MAINTAINER_PATH is set to point to a > > directory. > > > > Signed-off-by: Juhamatti Kuusisaari <juhamatti.kuusisa...@coriant.com> > > --- > > devtools/get-maintainer.sh | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > diff --git a/devtools/get-maintainer.sh b/devtools/get-maintainer.sh > > index 1e9eabd..b916048 100755 > > --- a/devtools/get-maintainer.sh > > +++ b/devtools/get-maintainer.sh > > @@ -23,7 +23,8 @@ print_usage () { > > } > > > > # Requires DPDK_GETMAINTAINER_PATH devel config option set -if [ ! -x > > "$DPDK_GETMAINTAINER_PATH" ] ; then > > +if [ ! -f "$DPDK_GETMAINTAINER_PATH" ] || > > + [ ! -x "$DPDK_GETMAINTAINER_PATH" ] ; then > > This isn't an issue but is there a reason that for exact same check you go > with > single line check in checkpatches.sh and multi line check in this file?
The line was getting long, that is the reason. > > print_usage >&2 > > echo > > echo 'Cannot execute DPDK_GETMAINTAINER_PATH' >&2 > >