mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-01 03:36:06 +02:00
Update automatic_packages.sh
This commit is contained in:
@@ -141,9 +141,9 @@ ERROR=0
|
|||||||
for packagestoinstall in $PACKAGES; do
|
for packagestoinstall in $PACKAGES; do
|
||||||
[ "$VERBOSE" = true ] && echo "... $packagestoinstall"
|
[ "$VERBOSE" = true ] && echo "... $packagestoinstall"
|
||||||
if [ "$PACKMANAGER" = "apk" ]; then
|
if [ "$PACKMANAGER" = "apk" ]; then
|
||||||
apk add --no-cache $packagestoinstall &>/dev/null || (echo "Error : $packagestoinstall not found" && ERROR = 1)
|
apk add --no-cache $packagestoinstall &>/dev/null || (echo "Error : $packagestoinstall not found" && ERROR=1)
|
||||||
elif [ "$PACKMANAGER" = "apt" ]; then
|
elif [ "$PACKMANAGER" = "apt" ]; then
|
||||||
apt-get install -yqq --no-install-recommends $packagestoinstall &>/dev/null || (echo "Error : $packagestoinstall not found" && ERROR = 1)
|
apt-get install -yqq --no-install-recommends $packagestoinstall &>/dev/null || (echo "Error : $packagestoinstall not found" && ERROR=1)
|
||||||
fi
|
fi
|
||||||
[ "$VERBOSE" = true ] && echo "... $packagestoinstall done"
|
[ "$VERBOSE" = true ] && echo "... $packagestoinstall done"
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user