summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-11-05 14:45:45 -0500
committerJoey Hess <joey@kodama.kitenet.net>2008-11-05 14:45:45 -0500
commit7e95723dadfe2a11fcd2463f2e8adf579fdc64db (patch)
tree91b1be06fae4b1adcef729ab7fc55856b57bb113 /IkiWiki
parentb76ee8a96dbf64a4231f749fc9c233518f367ecd (diff)
avoid hitting the shell with system()
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/po.pm3
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 {