removed some commented out code and changed failed listing to match passed listing
This commit is contained in:
parent
30172a7e33
commit
da6cd39b4a
5
wipe.pl
5
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user