refactor: move apt package list to files dir
This commit is contained in:
parent
e0c397925f
commit
6d9ad6c09e
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue