aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2019-11-26 01:48:02 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2019-11-26 01:48:02 +0100
commit423fbcba2fcfb439be64ed224743d637d7c42d70 (patch)
treed8eb1ab0776bb16a5a2ef1a254ac22166af28136
parentColors issue fix (diff)
downloadarch-installer-423fbcba2fcfb439be64ed224743d637d7c42d70.tar.gz
arch-installer-423fbcba2fcfb439be64ed224743d637d7c42d70.tar.bz2
arch-installer-423fbcba2fcfb439be64ed224743d637d7c42d70.tar.xz
arch-installer-423fbcba2fcfb439be64ed224743d637d7c42d70.tar.zst
arch-installer-423fbcba2fcfb439be64ed224743d637d7c42d70.zip
Wiping theorical optimization
-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 78c9154..b14d8cd 100755
--- a/joes-arch-install-UEFI.sh
+++ b/joes-arch-install-UEFI.sh
@@ -398,9 +398,10 @@ if [ "$basepartc" -ge 1 ]; then
dd if=/dev/zero of="$drv$towipe" bs=1M status=progress > /dev/null 2>&1
((i++))
done
+else
+ echo -e "${BCYAN}Wiping $drv...${END}"
+ dd if=/dev/zero of="$drv" bs=1M status=progress > /dev/null 2>&1
fi
-echo -e "${BCYAN}Wiping $drv...${END}"
-dd if=/dev/zero of="$drv" bs=1M status=progress > /dev/null 2>&1
wipefs --all --force "$drv"
echo && echo
echo -e "${BGREEN}Wiping complete.${END}"