summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authortv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2008-03-19 16:40:06 +0000
committertv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2008-03-19 16:40:06 +0000
commit05bde03de3552f7fbfd6d06c9414b349e0750ad1 (patch)
tree30076968d886df7afe51444d784c592abb6436ac /lib
parent6b6113bb0bf1e296b456077434d26513a6b906a2 (diff)
downloaddraksnapshot-05bde03de3552f7fbfd6d06c9414b349e0750ad1.tar
draksnapshot-05bde03de3552f7fbfd6d06c9414b349e0750ad1.tar.gz
draksnapshot-05bde03de3552f7fbfd6d06c9414b349e0750ad1.tar.bz2
draksnapshot-05bde03de3552f7fbfd6d06c9414b349e0750ad1.tar.xz
draksnapshot-05bde03de3552f7fbfd6d06c9414b349e0750ad1.zip
(init) simplify (pixel)
git-svn-id: http://svn.mandriva.com/svn/soft/draksnapshot/trunk@240104 99302b65-d5f7-0310-b3dd-f8cd6f4e3d94
Diffstat (limited to 'lib')
-rw-r--r--lib/MDV/Snapshot/Common.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/MDV/Snapshot/Common.pm b/lib/MDV/Snapshot/Common.pm
index 3ef2d63..f041f66 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 = "$::prefix/" .
- (split(/\s/, (find { /^snapshot_root\s/ } cat_($config_file)), 2))[1];
+ $backup_directory = (cat_($config_file) =~ /^snapshot_root\s(.*)/m) ? "$::prefix/$1" : '';
# normalize for glob():
chomp($backup_directory);