From 20c5cac7c914d063fec541f38eb7637b157d5da9 Mon Sep 17 00:00:00 2001 From: Tommaso Chiti Date: Sun, 31 Jan 2021 14:29:33 +0100 Subject: [PATCH] Update easy-arch.sh --- easy-arch.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/easy-arch.sh b/easy-arch.sh index 1bdf922..8726788 100644 --- a/easy-arch.sh +++ b/easy-arch.sh @@ -12,8 +12,8 @@ done # Deleting old partition scheme. read -r -p "This will delete the current partition table on $DISK. Do you agree [y/N]? " response response=${response,,} -then if [[ "$response" =~ ^(yes|y)$ ]] +then wipefs -af $DISK sgdisk -Zo $DISK else @@ -71,4 +71,4 @@ mount -o compress=zstd,subvol=@snapshots $BTRFS /mnt/.snapshots mount -o nodatacow,subvol=@var_log $BTRFS /mnt/var/log mount -o nodatacow,subvol=@swap $BTRFS /mnt/swap mount $ESP /mnt/boot -echo "Done." \ No newline at end of file +echo "Done."