mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-28 08:50:32 +02:00
beautify
This commit is contained in:
@@ -138,13 +138,13 @@ done
|
|||||||
|
|
||||||
# Install apps one by one to allow failures
|
# Install apps one by one to allow failures
|
||||||
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"
|
apk add --no-cache $packagestoinstall &>/dev/null || echo "Error : $packagestoinstall not found"
|
||||||
elif [ "$PACKMANAGER" = "apt" ]; then
|
elif [ "$PACKMANAGER" = "apt" ]; then
|
||||||
apt-get install -yqq --no-install-recommends $packagestoinstall &>/dev/null || echo "Error : $packagestoinstall not found"
|
apt-get install -yqq --no-install-recommends $packagestoinstall &>/dev/null || echo "Error : $packagestoinstall not found"
|
||||||
fi
|
fi
|
||||||
[ "$VERBOSE" = true ] && echo "... $packagestoinstall done"
|
[ "$VERBOSE" = true ] && echo "... $packagestoinstall done"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Clean after install
|
# Clean after install
|
||||||
|
|||||||
Reference in New Issue
Block a user