mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
handle input carefully in shell scripts
- prevent whitespace-splitting of variable expansions - prevent interpretation of values as flags/options (mostly)
This commit is contained in:
parent
2790402060
commit
076cfe25d7
2 changed files with 21 additions and 21 deletions
|
|
@ -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/'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue