git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5708
91ce42f0-d328-0410-95d8-
f526ca767f89
Release Notes for brestore 2.2.0
+Version 2.2.5-1:
+ - Fix warning, thanks to Tuomas Jormola
+
Version 2.2.0-2:
- cleanup brestore
- update brestore_xxx only when job is in (T, f, A)
exit 1;
}
-my $file_conf = "$ENV{HOME}/.brestore.conf" ;
+my $file_conf = (exists $ENV{HOME})? "$ENV{HOME}/.brestore.conf" : undef ;
my $batch_mod;
GetOptions("conf=s" => \$file_conf,
"debug" => \$debug,
"help" => \&HELP_MESSAGE) ;
+if (! defined $file_conf) {
+ print STDERR "Could not detect default config and no config file specified\n";
+ HELP_MESSAGE();
+}
+
my $p = new Pref($file_conf);
if (! -f $file_conf) {