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
This commit is contained in:
Pino Toscano 2017-05-06 15:01:27 +02:00
parent 288dc5b0bb
commit 028d7fec2a
1 changed files with 1 additions and 1 deletions

View File

@ -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]*('