Update automatic_packages.sh

This commit is contained in:
Alexandre
2021-12-08 22:49:35 +01:00
committed by GitHub
parent 6a26bc491e
commit 96bf4a43b8

View File

@@ -78,13 +78,9 @@ echo "Looking in $files"
if [[ $(grep -rnw "$files/" -e 'lastversion') ]]; then
echo "found last version"
[ $PACKMANAGER = "apk" ] && apk add --no-cache pip \
&& pip install --upgrade pip \
[ $PACKMANAGER = "apk" ] && apk add --no-cache py2-pip && pip install --upgrade pip \
&& pip install lastversion
[ $PACKMANAGER = "apt" ] && apt-get clean \
&& apt-get update \
&& apt-get install -y --no-install-recommends pip \
&& pip install --upgrade pip \
[ $PACKMANAGER = "apt" ] && apt-get install -y python-pip && pip install --upgrade pip \
&& pip install lastversion
fi