From 177bb82206dd56530a19aac5952903d4a3b37370 Mon Sep 17 00:00:00 2001 From: RaspbianProyect by HP3ICC Date: Sat, 3 Jun 2023 06:41:39 +0000 Subject: [PATCH] Update install.sh --- install.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index b778d5c..b9555a1 100644 --- a/install.sh +++ b/install.sh @@ -1,6 +1,18 @@ #!/bin/bash -sudo apt install python3 -y +apps=("python3") + +for app in "${apps[@]}" +do + # Verificar apps + if ! dpkg -s "$app" >/dev/null 2>&1; then + # app no instalada + sudo apt-get install -y "$app" + else + # app ya instalada + echo "$app ya instalada" + fi +done if [ -d "/opt/python-aprs" ] then