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."