Update direwolf.sh

This commit is contained in:
RaspbianProyect by HP3ICC 2023-07-08 19:48:11 +00:00
parent 46bd8501cb
commit d8ed52d077
1 changed files with 1 additions and 1 deletions

View File

@ -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."