mirror of
https://github.com/hassio-addons/addon-vscode.git
synced 2025-05-03 18:51:23 +00:00
changed init-cp run
This commit is contained in:
parent
db106ec1ac
commit
2bcc3d51c4
2 changed files with 3 additions and 3 deletions
|
@ -47,7 +47,7 @@ options:
|
|||
log_level: warning
|
||||
schema:
|
||||
log_level: list(trace|debug|info|notice|warning|error|fatal)?
|
||||
config_path: str?
|
||||
vscode_config_path: str?
|
||||
packages:
|
||||
- str?
|
||||
init_commands:
|
||||
|
|
|
@ -30,8 +30,8 @@ readonly CODE_SERVER_CONFIG="$CODE_SERVER_CONFIG_DIR/config.yaml"
|
|||
readonly CODE_SERVER_EXTENSIONS_LIST="$CODE_SERVER_CONFIG_DIR/vscode.extensions"
|
||||
|
||||
# Ensure config path exists
|
||||
if bashio::config.has_value "config_path"; then
|
||||
config_path=$(bashio::config 'config_path')
|
||||
if bashio::config.has_value "vscode_config_path"; then
|
||||
config_path=$(bashio::config 'vscode_config_path')
|
||||
if ! bashio::fs.directory_exists "${config_path}"; then
|
||||
bashio::exit.nok "Configured config path does not exists"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue