mirror of https://gitlab.com/hp3icc/emq-TE1.git
Update direwolf.sh
This commit is contained in:
parent
46bd8501cb
commit
d8ed52d077
|
|
@ -39,7 +39,7 @@ apps=("git" "gcc" "g++" "make" "cmake" "libasound2-dev" "libudev-dev" "gpsd" "li
|
|||
# Función para verificar e instalar una aplicación
|
||||
check_and_install() {
|
||||
app=$1
|
||||
if ! command -v $app &> /dev/null; then
|
||||
if ! dpkg -s $app 2>/dev/null | grep -q "Status: install ok installed"; then
|
||||
echo "$app no está instalado. Instalando..."
|
||||
sudo apt-get install -y $app
|
||||
echo "$app instalado correctamente."
|
||||
|
|
|
|||
Loading…
Reference in New Issue