refactor: move apt package list to files dir

This commit is contained in:
Marc 2024-02-23 22:29:23 -05:00
parent e0c397925f
commit 6d9ad6c09e
Signed by: marc
GPG key ID: 048E042F22B5DC79
2 changed files with 2 additions and 2 deletions

View file

@ -50,7 +50,7 @@ pre_substep() {
# Ensures that all existing Apt packages are up-to-date. # Ensures that all existing Apt packages are up-to-date.
ensure_apt_up_to_date() { ensure_apt_up_to_date() {
pre_step "Ensuring apt packages are up-to-date" pre_step "Ensuring apt packages are up-to-date"
if [ -z "$(apt --version 2> /dev/null)" ]; then if [ -z "$(apt --version 2> /dev/null)" ]; then
echo -e "\e[33mApt not installed, skipping updates.\e[0m" echo -e "\e[33mApt not installed, skipping updates.\e[0m"
else else
@ -71,7 +71,7 @@ ensure_apt_dependencies() {
else else
echo -e "\e[1mInstalling packages...\e[0m" 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" echo -e "\e[1;32mSystem packages installed.\e[0m"
fi fi