Update automatic_packages.sh

This commit is contained in:
Alexandre
2021-12-08 19:37:19 +01:00
committed by GitHub
parent 80dbc8f1fb
commit 98bb7ad7a0

View File

@@ -65,17 +65,17 @@ for files in "/scripts" "/etc/cont-init.d" "/etc"; do
[ $PACKMANAGER = "apt" ] && PACKAGES="$PACKAGES yamllint" [ $PACKMANAGER = "apt" ] && PACKAGES="$PACKAGES yamllint"
fi fi
if [ $(grep -rnw "$files" -e 'git') ]; then if [ $(grep -rnw "$files/" -e 'git') ]; then
[ $PACKMANAGER = "apk" ] && PACKAGES="$PACKAGES git" [ $PACKMANAGER = "apk" ] && PACKAGES="$PACKAGES git"
[ $PACKMANAGER = "apt" ] && PACKAGES="$PACKAGES git" [ $PACKMANAGER = "apt" ] && PACKAGES="$PACKAGES git"
fi fi
if [ $(grep -rnw "$files" -e 'sponge') ]; then if [ $(grep -rnw "$files/" -e 'sponge') ]; then
[ $PACKMANAGER = "apk" ] && PACKAGES="$PACKAGES moreutils" [ $PACKMANAGER = "apk" ] && PACKAGES="$PACKAGES moreutils"
[ $PACKMANAGER = "apt" ] && PACKAGES="$PACKAGES moreutils" [ $PACKMANAGER = "apt" ] && PACKAGES="$PACKAGES moreutils"
fi fi
if [ $(grep -rnw "$files" -e 'lastversion') ]; then if [ $(grep -rnw "$files/" -e 'lastversion') ]; then
[ $PACKMANAGER = "apk" ] && apk add --no-cache pip \ [ $PACKMANAGER = "apk" ] && apk add --no-cache pip \
&& pip install --upgrade pip \ && pip install --upgrade pip \
&& pip install lastversion && pip install lastversion