From 028d7fec2af2f8423174609258d6c97b61dee8e0 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Sat, 6 May 2017 15:01:27 +0200 Subject: [PATCH] tests: fix i18ndcheck.sh for paths with special chars - quote the argument, so it is interpreted as single parameter (as it should be) - print the found paths with null terminator, telling xargs to read them that way --- autotests/i18ndcheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autotests/i18ndcheck.sh b/autotests/i18ndcheck.sh index c01181328..668f90eea 100644 --- a/autotests/i18ndcheck.sh +++ b/autotests/i18ndcheck.sh @@ -5,5 +5,5 @@ #First arg should be the directory to check -! find $1 -name '*.qml' | xargs grep 'i18n[^d]*(' +! find "$1" -name '*.qml' -print0 | xargs -0 grep 'i18n[^d]*('