Fix not wring a file in transcode only mode

This commit is contained in:
Ilia Rostovtsev
2020-04-14 01:30:48 +03:00
parent 5f8e23218f
commit 7535c1318c

View File

@ -1142,7 +1142,8 @@ sub go
my $file_auto = $mpath . "/$code.$language_suffix"; my $file_auto = $mpath . "/$code.$language_suffix";
write_file($file, \%language, undef, undef, $mfile) write_file($file, \%language, undef, undef, $mfile)
if (%language); if (%language);
write_file($file_auto, \%language_auto, undef, undef, $mfile) if (%language_auto); write_file($file_auto, \%language_auto, undef, undef, $mfile)
if (%language_auto && !$opt->{'only-transcode'});
# Git auto-commit after language was transcoded/translated # Git auto-commit after language was transcoded/translated
if ($git_commit) { if ($git_commit) {