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