mirror of
https://github.com/hassio-addons/addon-vscode.git
synced 2025-05-03 18:51:23 +00:00
devenv
This commit is contained in:
parent
dd920cd16c
commit
b005cbd806
1 changed files with 2 additions and 1 deletions
|
@ -12,12 +12,13 @@ readonly DEFAULT_FILES_PATH="/var/lib/code-server/defaults"
|
||||||
|
|
||||||
run() {
|
run() {
|
||||||
if [ ! -d "$CUSTOM_BASH_SCRIPTS_PATH" ]; then
|
if [ ! -d "$CUSTOM_BASH_SCRIPTS_PATH" ]; then
|
||||||
bashio::log.warning "Config path did not exist, creating $CUSTOM_BASH_SCRIPTS_PATH"
|
bashio::log.warning "CUSTOM_BASH_SCRIPTS_PATH path did not exist, creating $CUSTOM_BASH_SCRIPTS_PATH"
|
||||||
mkdir -p "$CUSTOM_BASH_SCRIPTS_PATH" ||
|
mkdir -p "$CUSTOM_BASH_SCRIPTS_PATH" ||
|
||||||
bashio::exit.nok "Could not create persistent storage folder."
|
bashio::exit.nok "Could not create persistent storage folder."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -e "$DEFAULT_FILES_PATH"/custom-template.sh ]]; then
|
if [[ ! -e "$DEFAULT_FILES_PATH"/custom-template.sh ]]; then
|
||||||
|
bashio::log.warning "custom-template.sh does not exist."
|
||||||
cp "$DEFAULT_FILES_PATH"/custom-template.sh "$CUSTOM_BASH_SCRIPTS_PATH"
|
cp "$DEFAULT_FILES_PATH"/custom-template.sh "$CUSTOM_BASH_SCRIPTS_PATH"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue