[PATCH v2 1/7] Fixed substitution of UPGRADE_PATH in firmware.tpl

Steffen Pankratz kratz00 at gmx.de
Mo Jan 4 16:43:20 CET 2016


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

diff --git a/buildscript b/buildscript
index 916314d..508e6ec 100755
--- a/buildscript
+++ b/buildscript
@@ -180,13 +180,12 @@ prebuild() {
 
     board_prebuild
 
-    shopt -s globstar nullglob
-    for template in $target/files/**/*.tpl
+    while IFS= read -r -d '' template
     do
         echo "Translating $template .."
         $tpl_translate "$template" > "$(dirname "$template")"/"$(basename "$template" .tpl)"
         /bin/rm "$template"
-    done
+    done < <(find "${target}/files" -name '*.tpl' -print0)
 
     #insert actual firware version informations into release file
     version=$(git describe --tags --dirty)
-- 
2.6.4




Mehr Informationen über die Mailingliste franken-dev