This commit is contained in:
Richard Sperry 2025-04-16 19:24:31 -07:00
parent 5ccfde1c0d
commit eb51b0d1ec

View file

@ -15,11 +15,13 @@ run() {
bashio::log.warning "CUSTOM_BASH_SCRIPTS_PATH path did not exist, creating $CUSTOM_BASH_SCRIPTS_PATH"
mkdir -p "$CUSTOM_BASH_SCRIPTS_PATH" ||
bashio::exit.nok "Could not create persistent storage folder."
if [[ ! -e "$DEFAULT_FILES_PATH"/custom-template.sh ]]; then
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
do