all repos — shredmaster @ c193f910379598a780a10ef1fa1a0e05a712dd93

script for wiping a bunch of drives at once

fix check for shred PIDs
Derek Stevens drkste@zoho.com
commit

c193f910379598a780a10ef1fa1a0e05a712dd93

parent

32943a97baeecbd1edfcf713f1511153b182fae7

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M shredder.shshredder.sh

@@ -44,7 +44,9 @@ # if so, everything is OK!

while true; do for child in ${children}; do - activeChildren="${activeChildren} $(ps T | grep $child | awk '{print $1}')" + if kill -0 ${child}; then + activeChildren="${activeChildren} ${child}" + fi done # if no active children, trim the whitespace so we can check for empty string