From: Hannu Nyman Date: Sun, 26 Oct 2025 13:31:59 +0000 (+0200) Subject: build: Fix variable usage in i18n-update.pl X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=ab7018cd6eacaf5f9c495bec06a89ea060eea328;p=project%2Fluci.git build: Fix variable usage in i18n-update.pl Use 'file' instead of 'cmd' to show the failed file name more clearly. Fixes: 6e9a7e1 "build: set i18n-update.pl to break at .po error" Signed-off-by: Hannu Nyman --- diff --git a/build/i18n-update.pl b/build/i18n-update.pl index c9ebc25e2f..5a191186d8 100755 --- a/build/i18n-update.pl +++ b/build/i18n-update.pl @@ -72,7 +72,7 @@ foreach my $dir (@dirs) my $head = read_header($file); printf "Updating %-40s", $file; - system("msgmerge", "-U", "-N", $file, "$dir/templates/$basename.pot") == 0 || die "$0: [$cmd] failed: $?\n"; + system("msgmerge", "-U", "-N", $file, "$dir/templates/$basename.pot") == 0 || die "$0: [$file] failed: $?\n"; write_header($file, $head); }