mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 10:21:02 +01:00
Update 99-run.sh
This commit is contained in:
@@ -17,11 +17,12 @@ fi
|
||||
if bashio::config.has_value 'additional_apps'; then
|
||||
bashio::log.info "Installing additional apps :"
|
||||
# hadolint ignore=SC2005
|
||||
for APP in $(echo "$(bashio::config 'additional_apps')" | tr "," " "); do
|
||||
NEWAPPS=$(bashio::config 'additional_apps')
|
||||
for APP in ${NEWAPPS//,/ }; do
|
||||
bashio::log.green "... $APP"
|
||||
# Test install with both apt-get and snap
|
||||
# hadolint ignore=SC2015
|
||||
apt-get install -yqq "$APP" &>/dev/null || apk add --no-cache "$APP" &>/dev/null &&
|
||||
(apt-get install -yqq "$APP" &>/dev/null || apk add --no-cache "$APP" &>/dev/null) &&
|
||||
bashio::log.green "... done" ||
|
||||
bashio::log.red "... not successful, please check package name"
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user