From 040c1687e8f25a367e15549515f14ee43aefb981 Mon Sep 17 00:00:00 2001 From: Sparsh Mishra <57213270+iSparsh@users.noreply.github.com> Date: Mon, 10 May 2021 12:28:54 +0530 Subject: [PATCH] feature: Added choice to install base-devel Description: Adds a section where user can choose if he wants to install the base-devel package or not. --- easy-arch.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/easy-arch.sh b/easy-arch.sh index e617e75..39064e8 100644 --- a/easy-arch.sh +++ b/easy-arch.sh @@ -146,6 +146,19 @@ pacstrap /mnt base $kernel $microcode linux-firmware btrfs-progs grub grub-btrfs network_selector +# Choice to install base-devel package +echo "base-devel contains helpful tools like gcc, automake, autoconf, sudo and many others." +read -r -p "This will install the base-devel package. Do you agree [y/N]? " bd_response +bd_response=${bd_response,,} +if [[ "$bd_response" =~ ^(yes|y)$ ]] +then + echo "Installing the package.." + pacstrap /mnt base-devel +else + echo "Quitting." + exit +fi + # Generating /etc/fstab. echo "Generating a new fstab." genfstab -U /mnt >> /mnt/etc/fstab