diff options
author | Tilman Sauerbeck <tilman@code-monkey.de> | 2006-04-29 18:27:19 +0000 |
---|---|---|
committer | Tilman Sauerbeck <tilman@code-monkey.de> | 2006-04-29 18:27:19 +0000 |
commit | 90673bbae3369c6c0f8e36ef73bd792d3b265c22 (patch) | |
tree | 92063d14c090c5046115233f1d3426d2400cbd5c /rsync | |
parent | 3b28b00f56bfc9b339e54284f4b14617fa09c658 (diff) | |
download | core-90673bbae3369c6c0f8e36ef73bd792d3b265c22.tar.gz core-90673bbae3369c6c0f8e36ef73bd792d3b265c22.tar.xz |
rsync: made the driver print the name of the destination directory when updating a collection instead of the upstream name of the collection
Diffstat (limited to 'rsync')
-rw-r--r-- | rsync/rsync.driver | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rsync/rsync.driver b/rsync/rsync.driver index 10ebc75a..31bb14a4 100644 --- a/rsync/rsync.driver +++ b/rsync/rsync.driver @@ -5,6 +5,7 @@ use warnings; use strict; +use File::Basename; my $host = ''; my $collection = ''; @@ -74,7 +75,7 @@ while (<PIPE>) close(PIPE); error("Running rsync failed") unless $? == 0; -print "Updating collection $collection\n"; +print "Updating collection " . basename($destination) . "\n"; # now really run rsync open(PIPE, 'rsync -crz --log-format "%o %n" ' . $host . "::$collection $destination|") or error("Couldn't open pipe to rsync"); |