From da6cd39b4a01d015293ad353b8b12fe16815bf19 Mon Sep 17 00:00:00 2001 From: bluesaxman Date: Mon, 28 Oct 2019 09:57:06 -0600 Subject: [PATCH] removed some commented out code and changed failed listing to match passed listing --- wipe.pl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/wipe.pl b/wipe.pl index ef3b339..75ca99c 100755 --- a/wipe.pl +++ b/wipe.pl @@ -177,8 +177,6 @@ while () { } exit unless "\n" eq anykey("Last chance to save your data, hit ENTER to DESTROY ALL DATA, or any other key to abort!\n"); foreach my $diskid (sort {$a cmp $b}keys %disks) { -# Disabling this because it just dosen't look good. -# print "\e[0;0H\e[2J"; # move cursor to 0,0 and then clear all text below. print "="x33; printf '[ %-10s ]', $diskid; say "="x33; @@ -186,9 +184,8 @@ while () { if ($disks{$diskid}{wipe} == 1) { $disks{$diskid}{smartpass} = smartcheck($diskid,\%disks); if ($disks{$diskid}{smartpass} == 1) { -# say "Smart looks good."; push(@good, sprintf("%-26.26s\t%46.46s",$disks{$diskid}{serial},$disks{$diskid}{model})); - } else { push(@failed, $disks{$diskid}{serial}); } + } else { push(@failed, $sprintf("%-26.26s\t%46.46s",$disks{$diskid}{serial},$disks{$diskid}{model})); } } else { push(@failed, $disks{$diskid}{serial}); } print "="x80; print "\n"x5;