From 5f64cd03a0bd9dbf71c5907d79cab407ed3cac14 Mon Sep 17 00:00:00 2001 From: Edwin Kempin Date: Mon, 27 Jan 2020 14:30:27 +0100 Subject: [PATCH] coverage.sh: Fix warning when running find find: warning: you have specified the global option -maxdepth after the argument -type, but global options are not positional, i.e., -maxdepth affects tests specified before it as well as those specified after it. Please specify global options before other arguments. Signed-off-by: Edwin Kempin Change-Id: I0fd82d6f38cf90400cbac4de02aed70ef6496d34 --- tools/coverage.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/coverage.sh b/tools/coverage.sh index 62dc22c38b..c92d5cfdb9 100755 --- a/tools/coverage.sh +++ b/tools/coverage.sh @@ -33,7 +33,7 @@ mkdir -p ${destdir}/java cp -r {java,javatests}/* ${destdir}/java mkdir -p ${destdir}/plugins -for plugin in `find plugins/ -type d -maxdepth 1` +for plugin in `find plugins/ -maxdepth 1 -type d` do mkdir -p ${destdir}/${plugin}/java cp -r plugins/*/{java,javatests}/* ${destdir}/${plugin}/java