From b25b66fd255380abe403102079c2647732d476f4 Mon Sep 17 00:00:00 2001 From: Dhruv Mistry <68422844+dhruvmistry2000@users.noreply.github.com> Date: Wed, 18 Sep 2024 22:59:15 +0530 Subject: [PATCH] Nala Setup for debian --- setup.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/setup.sh b/setup.sh index bc0f7be..b972b09 100755 --- a/setup.sh +++ b/setup.sh @@ -62,6 +62,23 @@ checkEnv() { exit 1 fi + if [ "$PACKAGER" = "apt" ]; then + echo "${YELLOW}Would you like to install nala for faster package management? (y/n)${RC}" + read -r install_nala + if [ "$install_nala" = "y" ]; then + echo "${YELLOW}Downloading and installing nala...${RC}" + curl -LO https://deb.volian.org/volian/pool/main/n/nala/nala_0.11.0_amd64.deb + sudo dpkg -i nala_0.11.0_amd64.deb + sudo apt-get install -f + if command_exists nala; then + PACKAGER="nala" + echo "${GREEN}Nala installed successfully and will be used as the package manager${RC}" + else + echo "${RED}Failed to install nala, continuing with apt${RC}" + fi + fi + fi + if command_exists sudo; then SUDO_CMD="sudo" elif command_exists doas && [ -f "/etc/doas.conf" ]; then