Commit 94b79db6 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

Fixed manifest-format handling

parent f52cc55c
......@@ -41,7 +41,7 @@ use MIME::Base64;
my $VERSION = "0.0.12";
my $VERSION = "0.0.13";
# System dirs we don't care about
my @defaultSystemExcl = ("/dev","/run","/proc","/sys","/tmp","/var/tmp");
# These should be backed up separately
......@@ -102,6 +102,7 @@ GetOptions(\%optctl,
"config=s",
"log-level=i",
"tar=s",
"manifest-format=s",
"backup",
"compress:s",
......@@ -258,6 +259,18 @@ if (defined($optctl{'log-level'})) {
$config{'log-level'} = $optctl{'log-level'};
}
if (defined($optctl{'manifest-format'})) {
if (
$optctl{'manifest-format'} ne "null" &&
$optctl{'manifest-format'} ne "newline"
) {
print(STDERR "ERROR: Manifest format is invalid, valid values are: null newline\n\n");
displayHelp();
exit 1;
}
$config{'manifest-format'} = $optctl{'manifest-format'};
}
if (defined($optctl{'exclude-system'})) {
$config{'exclude-system'} = 1;
}
......@@ -1384,6 +1397,8 @@ sub getTarVer
print(STDERR "ERROR: Failed to read tar version or your version is simply too old\n");
exit 1;
}
return $tarVer;
}
# vim: ts=4
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment