install text
This commit is contained in:
parent
a2f03196e6
commit
7728cd388e
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user