diff options
author | misc <misc@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94> | 2010-08-16 23:42:01 +0000 |
---|---|---|
committer | misc <misc@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94> | 2010-08-16 23:42:01 +0000 |
commit | da64ce253a6f7c94c7e9a6ac2ed3872c8e83a627 (patch) | |
tree | bf142ea96885677a3e2a08dcb434a0287f34a646 | |
parent | cd14e13827fd2fdec5f59dab877a2babcbbfedb3 (diff) | |
download | draksnapshot-da64ce253a6f7c94c7e9a6ac2ed3872c8e83a627.tar draksnapshot-da64ce253a6f7c94c7e9a6ac2ed3872c8e83a627.tar.gz draksnapshot-da64ce253a6f7c94c7e9a6ac2ed3872c8e83a627.tar.bz2 draksnapshot-da64ce253a6f7c94c7e9a6ac2ed3872c8e83a627.tar.xz draksnapshot-da64ce253a6f7c94c7e9a6ac2ed3872c8e83a627.zip |
- fix warning :
- default value for monthly, so there is no error for "unitialized value"
- do not count the number of time a line is removed, as we do not really use the value ( since the 2nd part of the conditional take care of this )
git-svn-id: http://svn.mandriva.com/svn/soft/draksnapshot/trunk@270574 99302b65-d5f7-0310-b3dd-f8cd6f4e3d94
-rwxr-xr-x | draksnapshot-config | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/draksnapshot-config b/draksnapshot-config index 546187e..6faf99a 100755 --- a/draksnapshot-config +++ b/draksnapshot-config @@ -49,6 +49,7 @@ my %default_values = ( "hourly" => 6, "daily" => 7, "weekly" => 4, + "monthly" => "", ); my ($backup_list, $exclude_list) = map { @@ -302,7 +303,7 @@ sub save_keyword { undef $_; $removed++; } - if ($removed == 1 && !$done) { + if ($removed && !$done) { $done++; $_ .= $new_val; } |