added notreally check to full zero
This commit is contained in:
parent
9d4902aad1
commit
39cf4ad940
2
wipe.pl
2
wipe.pl
@ -142,7 +142,7 @@ sub wipethemdrives {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
# If long flag than zero whole disk and give a progress bar
|
# If long flag than zero whole disk and give a progress bar
|
||||||
if ($longrun) {
|
if ($longrun && !$notreally) {
|
||||||
say "Zeroing $disks->{$diskid}{path}...";
|
say "Zeroing $disks->{$diskid}{path}...";
|
||||||
open(my $longdiskw, ">:raw", $disks->{$diskid}{path}) or return warning("could not open $disks->{$diskid}{path}");
|
open(my $longdiskw, ">:raw", $disks->{$diskid}{path}) or return warning("could not open $disks->{$diskid}{path}");
|
||||||
seek($longdiskw,0,2);
|
seek($longdiskw,0,2);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user