]> sipb.mit.edu Git - ikiwiki.git/commitdiff
Merge commit 'schmonz/master'
authorJoey Hess <joey@gnu.kitenet.net>
Fri, 11 Sep 2009 22:20:23 +0000 (18:20 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Fri, 11 Sep 2009 22:20:23 +0000 (18:20 -0400)
Conflicts:
IkiWiki/Plugin/rsync.pm

1  2 
IkiWiki/Plugin/rsync.pm

index 7c3fc127cf6f2c15f18cf18399aca4c5556383f0,70dd5a4c9270b211d477c2fd15e07034795ac790..9afbe948728507c5a72fbea480919c6c43ddd15c
@@@ -26,20 -25,14 +25,16 @@@ sub getsetup () 
                },
  }
  
- sub checkconfig {
-       if (! exists $config{rsync_command} ||
-           ! defined $config{rsync_command}) {
-               error("Must specify rsync_command");
-       }
- }
  sub postrefresh () {
-       chdir($config{destdir}) || error("chdir: $!");
-       system $config{rsync_command};
-       if ($? == -1) {
-               error("failed to execute rsync_command: $!");
-       } elsif ($? != 0) {
-               error(sprintf("rsync_command exited %d", $? >> 8));
+       if (defined $config{rsync_command}) {
++              chdir($config{destdir}) || error("chdir: $!");
+               system $config{rsync_command};
+               if ($? == -1) {
+                       warn("failed to execute rsync_command: $!");
 -              } elsif ($? != 0) {
++              }
++              elsif ($? != 0) {
+                       warn(sprintf("rsync_command exited %d", $? >> 8));
+               }
        }
  }