mirror of
https://github.com/hassio-addons/addon-vscode.git
synced 2025-05-03 18:51:23 +00:00
✨ Initial add-on code
This commit is contained in:
parent
416e586602
commit
344e8f48be
20 changed files with 810 additions and 0 deletions
11
vscode/rootfs/etc/cont-init.d/81-user-scripts.sh
Normal file
11
vscode/rootfs/etc/cont-init.d/81-user-scripts.sh
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/with-contenv bashio
|
||||
# ==============================================================================
|
||||
# Community Hass.io Add-ons: Visual Studio Code
|
||||
# Executes user configured/requested commands on startup
|
||||
# ==============================================================================
|
||||
if bashio::config.has_value 'init_commands'; then
|
||||
while read -r cmd; do
|
||||
eval "${cmd}" \
|
||||
|| bashio::exit.nok "Failed executing init command: ${cmd}"
|
||||
done <<< "$(bashio::config 'init_commands')"
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue