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
5ccfde1c0d
commit
eb51b0d1ec
1 changed files with 6 additions and 4 deletions
|
@ -15,10 +15,12 @@ run() {
|
||||||
bashio::log.warning "CUSTOM_BASH_SCRIPTS_PATH 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."
|
||||||
if [[ ! -e "$DEFAULT_FILES_PATH"/custom-template.sh ]]; then
|
|
||||||
bashio::log.warning "custom-template.sh does not exist."
|
fi
|
||||||
cp "$DEFAULT_FILES_PATH"/custom-template.sh "$CUSTOM_BASH_SCRIPTS_PATH"/custom-template.sh
|
|
||||||
fi
|
if [[ ! -e "$CUSTOM_BASH_SCRIPTS_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"/custom-template.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for script in "${CUSTOM_BASH_SCRIPTS_PATH}"/*.sh
|
for script in "${CUSTOM_BASH_SCRIPTS_PATH}"/*.sh
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue