From: Paul Donald Date: Tue, 3 Feb 2026 06:22:04 +0000 (+0100) Subject: build: do not run ./build/mkbasepot.sh twice X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=523f2bda5fb2ae5d6b647a23fd773a1df7d6c2fa;p=openwrt-luci.git build: do not run ./build/mkbasepot.sh twice Signed-off-by: Paul Donald --- diff --git a/build/i18n-sync.sh b/build/i18n-sync.sh index 1d7fb13b87..f3d07d7daf 100755 --- a/build/i18n-sync.sh +++ b/build/i18n-sync.sh @@ -12,6 +12,14 @@ print_help() { exit 1 } +RAN_MKBASE=0 + +if [ "$#" -eq 0 ]; then + NOARGS=1 +else + NOARGS=0 +fi + case $1 in -h | --help ) print_help @@ -19,13 +27,16 @@ case $1 in ;; -b ) ./build/mkbasepot.sh + RAN_MKBASE=1 shift ;; esac [ -n "$1" ] && set -- "${1%/}" -[ -n "$1" ] || ./build/mkbasepot.sh +if [ "$NOARGS" -eq 1 ] && [ "$RAN_MKBASE" -eq 0 ]; then + ./build/mkbasepot.sh +fi # Absent a [folder] parameter, use the current path find "${1:-.}" -name '*.pot' -and -not -name base.pot | sort | \