From 94a51c720c2b61e5df56a9fb077c53ec9529d4e6 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 19 Aug 2018 15:00:18 +0200 Subject: print_archive_list: Fix incorrect counter values Signed-off-by: Florian Pritz --- script/borg-restore.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script') 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++; } } -- cgit v1.2.3-24-g4f1b