diff options
author | Florian Pritz <bluewind@xinu.at> | 2018-08-19 15:00:18 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2018-08-19 15:00:18 +0200 |
commit | 94a51c720c2b61e5df56a9fb077c53ec9529d4e6 (patch) | |
tree | 3734d77fd99f15c4d8e4cafa07c3cefdc3078d27 /script | |
parent | da91a53ee49534ad468d407d819b83140900f09e (diff) | |
download | App-BorgRestore-94a51c720c2b61e5df56a9fb077c53ec9529d4e6.tar.gz App-BorgRestore-94a51c720c2b61e5df56a9fb077c53ec9529d4e6.tar.xz |
print_archive_list: Fix incorrect counter values
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'script')
-rwxr-xr-x | script/borg-restore.pl | 2 |
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++; } } |