Skip to content

Commit

Permalink
Create download and log folders
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeweerd committed Sep 9, 2023
1 parent 289ad60 commit b76cb18
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions addon_meterstoha/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,16 @@ if bashio::config.has_value log_level ; then
LOG_LEVEL="$(bashio::config log_level)"
fi

if bashio::config.has_value download_folder ; then
# shellcheck disable=SC2089
mkdir "$(bashio::config download_folder)"
fi

if bashio::config.has_value logs_folder ; then
# shellcheck disable=SC2089
RUN_OPT="${RUN_OPT} -l $(bashio::config logs_folder)"
LOGS_FOLDER="$(bashio::config logs_folder)"
mkdir -p ${LOGS_FOLDER}
fi

if bashio::config.has_value type ; then
Expand Down

0 comments on commit b76cb18

Please sign in to comment.