aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillermo Ramos2021-07-29 13:18:24 +0200
committerGuillermo Ramos2021-07-29 13:18:24 +0200
commit7da8a0601bea3157bee751acf3b28e40cc181324 (patch)
tree18133704055a1ea922c7375a72b15bebb25479e4
parentc9ed1d213d75593d4133f4f38e321b1483c79f49 (diff)
downloadcli-7da8a0601bea3157bee751acf3b28e40cc181324.tar.gz
Fix ioob in dups
-rwxr-xr-xdups2
1 files changed, 2 insertions, 0 deletions
diff --git a/dups b/dups
index 4049682..bf59ee9 100755
--- a/dups
+++ b/dups
@@ -141,6 +141,8 @@ foreach my $md5 (keys(%md5s)) {
$index = int($index);
if ($index >= 0 && $index < @best_choices) {
keep($best_choices[$index], @same_md5_files);
+ } else {
+ print "\n!!\t Index outside of range, ignoring\n";
}
}
}