changed init-cp run

This commit is contained in:
Richard Sperry 2025-04-15 16:48:58 -07:00
parent db106ec1ac
commit 2bcc3d51c4
2 changed files with 3 additions and 3 deletions

View file

@ -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:

View file

@ -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