From 643fca9f8a034fc9980a22f5506e9a8e369b9585 Mon Sep 17 00:00:00 2001 From: RaspbianProyect by HP3ICC Date: Sat, 3 Jun 2023 06:39:58 +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 5c060e2..4d56bd8 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-wx" ] then