From 5c0842c6c5ad9c1b0c585af97eeaa4e758cb676f Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 19 Mar 2008 17:09:32 +0000 Subject: (init) further simplify git-svn-id: http://svn.mandriva.com/svn/soft/draksnapshot/trunk@240107 99302b65-d5f7-0310-b3dd-f8cd6f4e3d94 --- lib/MDV/Snapshot/Common.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/MDV/Snapshot/Common.pm b/lib/MDV/Snapshot/Common.pm index f26c664..1646a3b 100644 --- a/lib/MDV/Snapshot/Common.pm +++ b/lib/MDV/Snapshot/Common.pm @@ -34,8 +34,7 @@ our ($config_file, $backup_directory); sub init { $config_file = "$::prefix/etc/rsnapshot.conf"; - $backup_directory = (cat_($config_file) =~ /^snapshot_root\s(.*)/m) ? "$::prefix/$1" : ''; - $backup_directory =~ s!/+!/!g; + $backup_directory = (cat_($config_file) =~ /^snapshot_root\s(.*)/m) ? "$::prefix$1" : ''; # normalize for glob(): chomp($backup_directory); -- cgit v1.2.1