summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorThirnearez <thirnearez@localhost>2017-10-06 18:24:21 +0000
committerAdam Tauber <asciimoo@gmail.com>2017-10-06 21:00:22 +0200
commit076cfe25d778201081972a6848f9173115b530f4 (patch)
tree6773d710ad79038c4d1a41adf9b18c1854bcc4b4 /utils
parent2790402060c37aa5bb1e0f371e17225bd51bf5e1 (diff)
downloadsearxng-076cfe25d778201081972a6848f9173115b530f4.tar.gz
searxng-076cfe25d778201081972a6848f9173115b530f4.zip
handle input carefully in shell scripts
- prevent whitespace-splitting of variable expansions - prevent interpretation of values as flags/options (mostly)
Diffstat (limited to 'utils')
-rwxr-xr-xutils/update-translations.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/update-translations.sh b/utils/update-translations.sh
index 00e7fb1e0..240387ae7 100755
--- a/utils/update-translations.sh
+++ b/utils/update-translations.sh
@@ -7,9 +7,9 @@
SEARX_DIR='searx'
-pybabel extract -F babel.cfg -o messages.pot $SEARX_DIR
-for f in `ls $SEARX_DIR'/translations/'`; do
- pybabel update -N -i messages.pot -d $SEARX_DIR'/translations/' -l $f
+pybabel extract -F babel.cfg -o messages.pot "$SEARX_DIR"
+for f in `ls "$SEARX_DIR"'/translations/'`; do
+ pybabel update -N -i messages.pot -d "$SEARX_DIR"'/translations/' -l "$f"
done
echo '[!] update done, edit .po files if required and run pybabel compile -d searx/translations/'