summaryrefslogtreecommitdiffstats
path: root/script
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-04-02 14:00:43 +0200
committerFlorian Pritz <bluewind@xinu.at>2017-04-02 14:00:43 +0200
commitb1cd0de7d4a13776f8316684844642ade2ea0349 (patch)
treef135dc0a0b98ca2cd9dd8b7f876b8c6f61431adf /script
parentab037ebb9332f30d806b2c2ed2ffff55c1874709 (diff)
downloadApp-BorgRestore-b1cd0de7d4a13776f8316684844642ade2ea0349.tar.gz
App-BorgRestore-b1cd0de7d4a13776f8316684844642ade2ea0349.tar.xz
Use Carp for find_archives errors
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'script')
-rwxr-xr-xscript/borg-restore.pl6
1 files changed, 0 insertions, 6 deletions
diff --git a/script/borg-restore.pl b/script/borg-restore.pl
index 1fdc758..a6d3b43 100755
--- a/script/borg-restore.pl
+++ b/script/borg-restore.pl
@@ -268,13 +268,7 @@ sub main {
my $archives = $app->find_archives($backup_path);
- if (!@$archives) {
- $log->fatal("No archives found for path");
- return 1;
- }
-
my $selected_archive;
-
if (defined($timespec)) {
$selected_archive = $app->select_archive_timespec($archives, $timespec);
} else {