All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/2] devtools: improve kernel script execution check
@ 2018-04-19 12:00 Juhamatti Kuusisaari
  2018-04-19 12:00 ` [PATCH v2 2/2] " Juhamatti Kuusisaari
  2018-04-19 13:21 ` [PATCH v2 1/2] " Ferruh Yigit
  0 siblings, 2 replies; 6+ messages in thread
From: Juhamatti Kuusisaari @ 2018-04-19 12:00 UTC (permalink / raw)
  To: thomas; +Cc: dev, Juhamatti Kuusisaari

Handle properly a case where DPDK_PATCH_PATH is set
to point to a directory.

Signed-off-by: Juhamatti Kuusisaari <juhamatti.kuusisaari@coriant.com>
---
 devtools/checkpatches.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/devtools/checkpatches.sh b/devtools/checkpatches.sh
index 7676a6b..2bb5458 100755
--- a/devtools/checkpatches.sh
+++ b/devtools/checkpatches.sh
@@ -75,7 +75,7 @@ while getopts hn:qv ARG ; do
 done
 shift $(($OPTIND - 1))
 
-if [ ! -x "$DPDK_CHECKPATCH_PATH" ] ; then
+if [ ! -f "$DPDK_CHECKPATCH_PATH" ] || [ ! -x "$DPDK_CHECKPATCH_PATH" ] ; then
 	print_usage >&2
 	echo
 	echo 'Cannot execute DPDK_CHECKPATCH_PATH' >&2
-- 
2.8.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-05-22 21:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-19 12:00 [PATCH v2 1/2] devtools: improve kernel script execution check Juhamatti Kuusisaari
2018-04-19 12:00 ` [PATCH v2 2/2] " Juhamatti Kuusisaari
2018-04-19 13:24   ` Ferruh Yigit
2018-04-20  4:10     ` Kuusisaari, Juhamatti
2018-04-19 13:21 ` [PATCH v2 1/2] " Ferruh Yigit
2018-05-22 21:34   ` Thomas Monjalon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.