mirror of
https://github.com/hassio-addons/addon-vscode.git
synced 2025-05-03 18:51:23 +00:00
changed repo init-cs for extension notices to logging
This commit is contained in:
parent
b20760cc41
commit
f65ecc66ca
1 changed files with 4 additions and 1 deletions
|
@ -61,12 +61,15 @@ ext_path="$config_path/extensions"
|
|||
if [ ! -d "$ext_path" ]; then
|
||||
mkdir -p "$ext_path" ||
|
||||
bashio::exit.nok "Could not create persistent extensions folder."
|
||||
|
||||
bashio::log.info "Initalizing code-server extentions..."
|
||||
# Only do this on folder create so users can remove faulty extentions.
|
||||
# Install code-server extensions via code-server so terminate is aware of them.
|
||||
while read -r extention; do
|
||||
if [ ! -e "$ext_path/$extention*" ]; then
|
||||
code-server --install-extension="$extention"
|
||||
bashio::log.info "Installed $extention"
|
||||
else
|
||||
bashio::log.info "Has $extention installed"
|
||||
fi
|
||||
done <"$DEFAULT_FILES_PATH/vscode.extensions"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue