mirror of
https://git.openwrt.org/project/luci.git
synced 2025-12-20 08:49:59 +08:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user