[PATCH v2 13/19] - better to use bash's build-in glob functionality instead of looping over the returned find output

Steffen Pankratz kratz00 at gmx.de
Fr Jul 17 18:47:10 CEST 2015


Signed-off-by: Steffen Pankratz <kratz00 at gmx.de>
---
 buildscript | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/buildscript b/buildscript
index 6e2b7bc..6861844 100755
--- a/buildscript
+++ b/buildscript
@@ -160,7 +160,8 @@ prebuild() {
 
 	board_prebuild
 
-	for template in $(find $target/files -name *.tpl)
+	shopt -s globstar nullglob
+	for template in $target/files/**/*.tpl
 	do
 		echo "Translating $template .."
 		$tpl_translate $template > $(dirname $template)/$(basename $template .tpl)
-- 
2.4.5




Mehr Informationen über die Mailingliste franken-dev