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"