Merge pull request #32 from b068931cc450442b63f5b3d276ea4297/master

install text
This commit is contained in:
b068931cc450442b63f5b3d276ea4297 2024-01-31 10:35:31 +01:00 committed by GitHub
commit fb19d3d439
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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"