aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xjoes-arch-install-UEFI.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/joes-arch-install-UEFI.sh b/joes-arch-install-UEFI.sh
index 981956f..816a424 100755
--- a/joes-arch-install-UEFI.sh
+++ b/joes-arch-install-UEFI.sh
@@ -369,13 +369,14 @@ basepartc=$(lsblk "$drv" | grep -c part)
if [ $basepartc -ge 1 ]; then
i=1
echo "Whiping disk. This step may take a while."
+ echo && echo
while [[ $i -le $basepartc ]]; do
towhipe=$(lsblk "$drv" | grep part | awk '{print $1}' | rev | cut -c -1 | rev | awk "NR==$i")
- dd if=/dev/zero of="$drv$towhipe" bs=1M status=progress > /dev/null
+ dd if=/dev/zero of="$drv$towhipe" bs=1M status=progress > /dev/null 2>&1
((i++))
done
fi
-dd if=/dev/zero of="$drv" bs=1M status=progress > /dev/null
+dd if=/dev/zero of="$drv" bs=1M status=progress > /dev/null 2>&1
wipefs --all --force "$drv"
fdisk "$drv" << FDISK_INPUT
g