summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscript/borg-restore.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/script/borg-restore.pl b/script/borg-restore.pl
index 7843270..0859e4e 100755
--- a/script/borg-restore.pl
+++ b/script/borg-restore.pl
@@ -283,6 +283,11 @@ 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)) {