Skip to content

Commit

Permalink
Fix no to write empty files
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Apr 13, 2020
1 parent 75f0ca4 commit 5f8e232
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/language-manager
Original file line number Diff line number Diff line change
Expand Up @@ -1141,8 +1141,8 @@ sub go
my $file = $mpath . "/$code";
my $file_auto = $mpath . "/$code.$language_suffix";
write_file($file, \%language, undef, undef, $mfile)
if (%language || (!%language && !$opt->{'only-transcode'}));
write_file($file_auto, \%language_auto, undef, undef, $mfile) if (!$opt->{'only-transcode'});
if (%language);
write_file($file_auto, \%language_auto, undef, undef, $mfile) if (%language_auto);

# Git auto-commit after language was transcoded/translated
if ($git_commit) {
Expand Down

0 comments on commit 5f8e232

Please sign in to comment.