From d8ed52d077150625fa6b7beb18c63c070e9164e2 Mon Sep 17 00:00:00 2001 From: RaspbianProyect by HP3ICC Date: Sat, 8 Jul 2023 19:48:11 +0000 Subject: [PATCH] Update direwolf.sh --- install/direwolf.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/direwolf.sh b/install/direwolf.sh index b099f82..00bedf5 100644 --- a/install/direwolf.sh +++ b/install/direwolf.sh @@ -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."