mirror of
https://github.com/hassio-addons/addon-vscode.git
synced 2025-05-02 18:21:23 +00:00
14 lines
597 B
Bash
14 lines
597 B
Bash
#!/usr/bin/with-contenv bashio
|
|
# ==============================================================================
|
|
# Community Hass.io Add-ons: Visual Studio Code
|
|
# Install user configured/requested packages
|
|
# ==============================================================================
|
|
if bashio::config.has_value 'packages'; then
|
|
apt update \
|
|
|| bashio::exit.nok 'Failed updating Ubuntu packages repository indexes'
|
|
|
|
for package in $(bashio::config 'packages'); do
|
|
apt add -y "$package" \
|
|
|| bashio::exit.nok "Failed installing package ${package}"
|
|
done
|
|
fi
|