From a8b2001cc1b94c6f8719345bc4b6cef3ca95b03f Mon Sep 17 00:00:00 2001 From: Andrey Petelin Date: Tue, 7 Oct 2025 20:12:46 +0500 Subject: [PATCH] fix: sort input files before processing in xgettext.sh to ensure consistent POT generation --- luci-app-podkop/xgettext.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/luci-app-podkop/xgettext.sh b/luci-app-podkop/xgettext.sh index 7f5d13b..0db78fb 100644 --- a/luci-app-podkop/xgettext.sh +++ b/luci-app-podkop/xgettext.sh @@ -12,6 +12,7 @@ if [ ${#FILES[@]} -eq 0 ]; then exit 1 fi +mapfile -t FILES < <(printf '%s\n' "${FILES[@]}" | sort) mkdir -p "$(dirname "$OUT_POT")" echo "Generating POT template from JS files in $SRC_DIR"