build: Fix variable usage in i18n-update.pl
authorHannu Nyman <[email protected]>
Sun, 26 Oct 2025 13:31:59 +0000 (15:31 +0200)
committerHannu Nyman <[email protected]>
Sun, 26 Oct 2025 13:31:59 +0000 (15:31 +0200)
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 <[email protected]>
build/i18n-update.pl

index c9ebc25e2f52df1a0e3b987b25ec38586209e4f6..5a191186d88f34c1d29492f06b6832d9d96d47d5 100755 (executable)
@@ -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);
                        }