From 3d3613d766d644d1f03c801160e78a603aa57758 Mon Sep 17 00:00:00 2001 From: BrainwreckedTech <3752022+BrainwreckedTech@users.noreply.github.com> Date: Mon, 20 Dec 2021 00:57:59 -0500 Subject: [PATCH] Proper looping output --- filldev | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/filldev b/filldev index 552b412..ed0a818 100755 --- a/filldev +++ b/filldev @@ -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