From ab7018cd6eacaf5f9c495bec06a89ea060eea328 Mon Sep 17 00:00:00 2001 From: Hannu Nyman Date: Sun, 26 Oct 2025 15:31:59 +0200 Subject: [PATCH] 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 --- build/i18n-update.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }