update-tx: Fix our file list.
authorGerald Combs <gerald.combs@riverbed.com>
Tue, 18 Sep 2018 21:57:33 +0000 (21:57 +0000)
committerGerald Combs <gerald@wireshark.org>
Tue, 18 Sep 2018 22:00:01 +0000 (22:00 +0000)
LUPDATE_FILES is a string, not an array.

Change-Id: Ibeef6fd45805f82eeff8c26f7110779603d9d30a
Reviewed-on: https://code.wireshark.org/review/29724
Reviewed-by: Gerald Combs <gerald@wireshark.org>
tools/update-tx

index 3b5e2eba0243ebe8571962ed84bb0432b964de36..48843fe7e3b964186704135902c18300045997b5 100755 (executable)
@@ -17,7 +17,8 @@ LUPDATE_FILES=$(find ui/qt -name '*.cpp' -o -name '*.h' -o -name '*.ui')
 
 # Add line numbers
 for i in ui/qt/*.ts ; do
-    lupdate -locations absolute "${LUPDATE_FILES[@]}" -ts "$i"
+    # shellcheck disable=SC2086
+    lupdate -locations absolute ${LUPDATE_FILES} -ts "$i"
 done
 
 # Get last translation for Transifex
@@ -25,7 +26,8 @@ tx pull -f
 
 # Regenerate last translation for repo
 for i in ui/qt/*.ts ; do
-    lupdate -locations absolute "${LUPDATE_FILES[@]}" -ts "$i"
+    # shellcheck disable=SC2086
+    lupdate -locations absolute ${LUPDATE_FILES} -ts "$i"
 done
 
 # Push last change tranlastion on Transifex
@@ -35,7 +37,8 @@ fi
 
 # Remove line numbers
 for i in ui/qt/*.ts ; do
-    lupdate -locations none -no-ui-lines "${LUPDATE_FILES[@]}" -ts "$i"
+    # shellcheck disable=SC2086
+    lupdate -locations none -no-ui-lines ${LUPDATE_FILES} -ts "$i"
 done
 
 #Add new commit with last translaation update