mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 18:31:02 +01:00
Update automatic_packages.sh
This commit is contained in:
@@ -65,17 +65,17 @@ for files in "/scripts" "/etc/cont-init.d" "/etc"; do
|
||||
[ $PACKMANAGER = "apt" ] && PACKAGES="$PACKAGES yamllint"
|
||||
fi
|
||||
|
||||
if [ $(grep -rnw "$files" -e 'git' &>/dev/null) ]; then
|
||||
if [ $(grep -rnw "$files" -e 'git') ]; then
|
||||
[ $PACKMANAGER = "apk" ] && PACKAGES="$PACKAGES git"
|
||||
[ $PACKMANAGER = "apt" ] && PACKAGES="$PACKAGES git"
|
||||
fi
|
||||
|
||||
if [ $(grep -rnw "$files" -e 'sponge' &>/dev/null) ]; then
|
||||
if [ $(grep -rnw "$files" -e 'sponge') ]; then
|
||||
[ $PACKMANAGER = "apk" ] && PACKAGES="$PACKAGES moreutils"
|
||||
[ $PACKMANAGER = "apt" ] && PACKAGES="$PACKAGES moreutils"
|
||||
fi
|
||||
|
||||
if [ $(grep -rnw "$files" -e 'lastversion' &>/dev/null) ]; then
|
||||
if [ $(grep -rnw "$files" -e 'lastversion') ]; then
|
||||
[ $PACKMANAGER = "apk" ] && apk add --no-cache pip \
|
||||
&& pip install --upgrade pip \
|
||||
&& pip install lastversion
|
||||
|
||||
Reference in New Issue
Block a user