summaryrefslogtreecommitdiffstats
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-rwxr-xr-xscript/borg-restore.pl6
1 files changed, 2 insertions, 4 deletions
diff --git a/script/borg-restore.pl b/script/borg-restore.pl
index e79b174..1f66fbd 100755
--- a/script/borg-restore.pl
+++ b/script/borg-restore.pl
@@ -274,8 +274,7 @@ sub main {
}
if (@ARGV > 1) {
- $log->fatal("Too many arguments");
- exit(1);
+ die "Too many arguments";
}
my $abs_path = $app->resolve_relative_path($path);
@@ -295,8 +294,7 @@ sub main {
}
if (!defined($selected_archive)) {
- $log->fatal("No archive selected or selection invalid");
- return 1;
+ die "No archive selected or selection invalid";
}
$app->restore($backup_path, $selected_archive, $destination);