From 6d9ad6c09e111675fe6e45679ccfb49c8738c60b Mon Sep 17 00:00:00 2001 From: Marc Cataford Date: Fri, 23 Feb 2024 22:29:23 -0500 Subject: [PATCH] refactor: move apt package list to files dir --- bootstrap.sh | 4 ++-- apt.txt => files/apt.txt | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename apt.txt => files/apt.txt (100%) diff --git a/bootstrap.sh b/bootstrap.sh index 6455408..080d30d 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -50,7 +50,7 @@ pre_substep() { # Ensures that all existing Apt packages are up-to-date. ensure_apt_up_to_date() { pre_step "Ensuring apt packages are up-to-date" - + if [ -z "$(apt --version 2> /dev/null)" ]; then echo -e "\e[33mApt not installed, skipping updates.\e[0m" else @@ -71,7 +71,7 @@ ensure_apt_dependencies() { else echo -e "\e[1mInstalling packages...\e[0m" - sudo apt install $(cat ./apt.txt) -y --autoremove + sudo apt install $(cat ./files/apt.txt) -y --autoremove echo -e "\e[1;32mSystem packages installed.\e[0m" fi diff --git a/apt.txt b/files/apt.txt similarity index 100% rename from apt.txt rename to files/apt.txt