From 183a1fc21992acd0ba7b552308e700a379bddb43 Mon Sep 17 00:00:00 2001 From: Alexandre Date: Thu, 9 Dec 2021 09:12:07 +0100 Subject: [PATCH] update --- zzz_templates/automatic_packages.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zzz_templates/automatic_packages.sh b/zzz_templates/automatic_packages.sh index 3c83039af..b1a9f4138 100644 --- a/zzz_templates/automatic_packages.sh +++ b/zzz_templates/automatic_packages.sh @@ -81,9 +81,9 @@ for files in "/scripts" "/etc/cont-init.d"; do [ $PACKMANAGER = "apt" ] && PACKAGES="$PACKAGES sqlite3" fi - if [[ $(grep -rnw "$files/" -e 'pip') ]] && [[ ! $(pip -V) ]]; then - [ $PACKMANAGER = "apk" ] && PACKAGES="$PACKAGES py3-pip" - [ $PACKMANAGER = "apt" ] && PACKAGES="$PACKAGES python-pip" + if [[ $(grep -rnw "$files/" -e 'pip') ]]; then + [ $PACKMANAGER = "apk" ] && [[ $(pip -V) ]] || PACKAGES="$PACKAGES py3-pip" + [ $PACKMANAGER = "apt" ] && [[ $(pip -V) ]] || PACKAGES="$PACKAGES python-pip" fi done