summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-04-01 23:14:00 +0200
committerFlorian Pritz <bluewind@xinu.at>2017-04-01 23:14:00 +0200
commit4b3c6874da1c45a666b58582f93254cfd5150d7d (patch)
treecd8d072b3a4ebc6da85e26066e588d7b2615f778
parente56763721e595bd3337d7aadd688c47b545b3d8b (diff)
downloadApp-BorgRestore-4b3c6874da1c45a666b58582f93254cfd5150d7d.tar.gz
App-BorgRestore-4b3c6874da1c45a666b58582f93254cfd5150d7d.tar.xz
Fix codingstyle
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-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};
}