mirror of
https://github.com/openwrt/luci.git
synced 2025-12-21 19:14:34 +04:00
build: i18n-sync.sh: fix i18n-update.pl invocation
Fixes: 4d3c0f347c ("build: i18n-sync.sh: allow restricting to directory")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
@@ -15,4 +15,10 @@ find "${1:-.}" -name '*.pot' -and -not -name base.pot | \
|
|||||||
echo "done"
|
echo "done"
|
||||||
done
|
done
|
||||||
|
|
||||||
./build/i18n-update.pl "${1:-./*/*/po}"
|
if [ -n "$1" ]; then
|
||||||
|
find "$1" -path '*/templates/*.pot' -printf '%h ' | \
|
||||||
|
xargs -r -n 1 dirname | \
|
||||||
|
xargs -r -n 1 ./build/i18n-update.pl
|
||||||
|
else
|
||||||
|
./build/i18n-update.pl
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user