avoid hitting the shell with system()
[ikiwiki.git] / IkiWiki / Plugin / po.pm
index 35eed6118412f08b03dcd23dfeab8ce3519ac634..b8c218c5a98c65db81c14726e5cf26986565dcdc 100644 (file)
@@ -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 {