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 <hannu.nyman@iki.fi>
This commit is contained in:
Hannu Nyman
2025-10-26 15:31:59 +02:00
parent 36e959f529
commit ab7018cd6e

View File

@ -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);
}