diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-11-05 14:45:45 -0500 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-11-05 14:45:45 -0500 |
commit | 7e95723dadfe2a11fcd2463f2e8adf579fdc64db (patch) | |
tree | 91b1be06fae4b1adcef729ab7fc55856b57bb113 /IkiWiki/Plugin | |
parent | b76ee8a96dbf64a4231f749fc9c233518f367ecd (diff) |
avoid hitting the shell with system()
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/po.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm index 35eed6118..b8c218c5a 100644 --- a/IkiWiki/Plugin/po.pm +++ b/IkiWiki/Plugin/po.pm @@ -149,8 +149,7 @@ sub refreshpofiles ($@) { #{{{ foreach my $pofile (@pofiles) { if (-e $pofile) { - my $cmd = "msgmerge -U --backup=none $pofile $potfile"; - system ($cmd) == 0 + system("msgmerge", "-U", "--backup=none", $pofile, $potfile) == 0 or error("[po/refreshpofiles:$pofile] failed to update"); } else { |