Proper looping output

master
BrainwreckedTech 3 years ago
parent fe517fd7f6
commit 3d3613d766

@ -12,11 +12,10 @@ for ARG in "$@"; do
esac
done
echo -n "Filling ${DVC[@]} with "
${SEC} && echo "random data" || echo "zeros"
for DEV in "${DVC[@]}"; do
echo "${DEV}:"
echo -n "Filling ${DVC[@]} with "
${SEC} && echo "random data" || echo "zeros"
${SEC} && openssl enc -aes-256-ctr -pbkdf2 -pass pass:"$(dd if=/dev/urandom bs=128 count=1 2>/dev/null | base64)" -nosalt </dev/zero | sudo dd of=${DEV} bs=4M conv=notrunc status=progress
${SEC} || sudo dd if=/dev/zero of=${DEV} bs=4M conv=notrunc status=progress
done

Loading…
Cancel
Save