install text

This commit is contained in:
b068931cc450442b63f5b3d276ea4297 2024-01-25 12:51:18 +01:00
parent a2f03196e6
commit 7728cd388e

View File

@ -162,9 +162,9 @@ echo -e "\e[39m[+] Checking dependencies...\e[39m"
for package in "${packages[@]}" for package in "${packages[@]}"
do do
if dpkg-query -W -f='${Status}' "$package" 2>/dev/null | grep -q -P '^install ok installed$'; then if dpkg-query -W -f='${Status}' "$package" 2>/dev/null | grep -q -P '^install ok installed$'; then
echo -e "\e[92m [✔] $package already installed\e[39m" echo -e "\e[92m [✔] $package is already installed\e[39m"
else else
echo -e "\e[93m [✘] $package not installed, lets install it\e[39m" echo -e "\e[93m [✘] $package is not installed, lets install it\e[39m"
apt-get install -y "$package" apt-get install -y "$package"
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
echo -e "\e[92m [✔] $package was successfully installed\e[39m" echo -e "\e[92m [✔] $package was successfully installed\e[39m"