added notreally check to full zero

This commit is contained in:
bluesaxman 2019-10-31 11:21:23 -06:00
parent 9d4902aad1
commit 39cf4ad940

View File

@ -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);