Update automatic_packages.sh

This commit is contained in:
Alexandre
2021-12-09 09:02:37 +01:00
committed by GitHub
parent eb35eefd57
commit 8bf378db99

View File

@@ -119,12 +119,7 @@ rm -rf /tmp/bashio
# Lastversion
if [[ $(grep -rnw "$files/" -e 'lastversion') ]]; then
[ $PACKMANAGER = "apk" ] && [[ $(pip -V) ]] \
|| apk add --no-cache py3-pip \
&& pip install lastversion
[ $PACKMANAGER = "apt" ] && [[ $(pip -V) ]] \
|| apt-get install -y python-pip \
&& pip install lastversion
pip install lastversion
fi
fi