summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2018-08-19 15:00:18 +0200
committerFlorian Pritz <bluewind@xinu.at>2018-08-19 15:00:18 +0200
commit94a51c720c2b61e5df56a9fb077c53ec9529d4e6 (patch)
tree3734d77fd99f15c4d8e4cafa07c3cefdc3078d27
parentda91a53ee49534ad468d407d819b83140900f09e (diff)
downloadApp-BorgRestore-94a51c720c2b61e5df56a9fb077c53ec9529d4e6.tar.gz
App-BorgRestore-94a51c720c2b61e5df56a9fb077c53ec9529d4e6.tar.xz
print_archive_list: Fix incorrect counter values
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-xscript/borg-restore.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/borg-restore.pl b/script/borg-restore.pl
index be3d7cd..04f051d 100755
--- a/script/borg-restore.pl
+++ b/script/borg-restore.pl
@@ -186,9 +186,9 @@ my $app;
fun print_archive_list ($archives, $show_counter=1) {
my $counter = 0;
for my $archive (@$archives) {
- $counter++;
printf "\e[0;33m%3d: ", $counter if $show_counter;
printf "\e[1;33m%s\e[0m %s\n", App::BorgRestore::Helper::format_timestamp($archive->{modification_time}), $archive->{archive};
+ $counter++;
}
}