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");
|
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) {
|
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;
|
print "="x33;
|
||||||
printf '[ %-10s ]', $diskid;
|
printf '[ %-10s ]', $diskid;
|
||||||
say "="x33;
|
say "="x33;
|
||||||
@ -186,9 +184,8 @@ while () {
|
|||||||
if ($disks{$diskid}{wipe} == 1) {
|
if ($disks{$diskid}{wipe} == 1) {
|
||||||
$disks{$diskid}{smartpass} = smartcheck($diskid,\%disks);
|
$disks{$diskid}{smartpass} = smartcheck($diskid,\%disks);
|
||||||
if ($disks{$diskid}{smartpass} == 1) {
|
if ($disks{$diskid}{smartpass} == 1) {
|
||||||
# say "Smart looks good.";
|
|
||||||
push(@good, sprintf("%-26.26s\t%46.46s",$disks{$diskid}{serial},$disks{$diskid}{model}));
|
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}); }
|
} else { push(@failed, $disks{$diskid}{serial}); }
|
||||||
print "="x80;
|
print "="x80;
|
||||||
print "\n"x5;
|
print "\n"x5;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user