summaryrefslogtreecommitdiffstats
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-rwxr-xr-xscript/borg-restore.pl3
1 files changed, 1 insertions, 2 deletions
diff --git a/script/borg-restore.pl b/script/borg-restore.pl
index 32eba63..7f8d8d4 100755
--- a/script/borg-restore.pl
+++ b/script/borg-restore.pl
@@ -177,12 +177,11 @@ sub user_select_archive {
my $selected_archive;
- my $counter = 0;
-
if (!@$archives) {
return;
}
+ my $counter = 0;
for my $archive (@$archives) {
printf "\e[0;33m%3d: \e[1;33m%s\e[0m %s\n", $counter++, $app->format_timestamp($archive->{modification_time}), $archive->{archive};
}