]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
fix system calls
authorhttps://id.koumbit.net/anarcat <https://id.koumbit.net/anarcat@web>
Thu, 19 May 2016 23:57:03 +0000 (19:57 -0400)
committeradmin <admin@branchable.com>
Thu, 19 May 2016 23:57:03 +0000 (19:57 -0400)
doc/plugins/contrib/irker.mdwn

index bbc24e57d36f7dc95e5b26fc5bf08a39093fe720..603ee0dd85a4a00784a3e829d51e6c6f0b6c3404 100644 (file)
@@ -108,14 +108,14 @@ sub genwrapper() {
             symlink($config{'irker_hook'}, $repo . '/hooks/post-receive') || error('failed to symlink: $!');
         }
         my $channels = join(",", @{$config{'irker_channels'}});
-        exec { 'git' } ('config', '-C', $repo, 'config', 'irker.channels', $channels);
-        exec { 'git' } ('config', '-C', $repo, 'config', 'irker.channels', $config{'wikiname'});
+        system { 'git' } ('config', '-C', $repo, 'config', 'irker.channels', $channels);
+        system { 'git' } ('config', '-C', $repo, 'config', 'irker.channels', $config{'wikiname'});
         if ($config{'irker_template'}) {
             exec { 'git' } ('config', '-C', $repo, 'config', 'irker.channels', $config{'irker_template'});
         }
     }
     else {
-        exec { 'git' } ('config', '-C', $repo, 'config', '--remove-section', 'irker');
+        system { 'git' } ('config', '-C', $repo, 'config', '--remove-section', 'irker');
         if (-l $repo . '/hooks/post-receive' && 
             readlink($repo . '/hooks/post-receive') =~ m/irkerhook/) {
             unlink($repo . '/hooks/post-receive');