From 8f8892a2357a0bb3d528d85d5fd1f36edf201f49 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 31 Jan 2021 16:04:50 +0100 Subject: [PATCH] Add token --- addons_updater/run.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/addons_updater/run.sh b/addons_updater/run.sh index 1ce9c7bfc..edc79cb48 100644 --- a/addons_updater/run.sh +++ b/addons_updater/run.sh @@ -6,13 +6,16 @@ bashio::log.info "Checking status of referenced repositoriess..." bashio::log.info "... github authentification" GITUSER=$(bashio::config 'gituser') GITPASS=$(bashio::config 'gitpass') -GITMAIL=$(bashio::config 'gitemail') +GITMAIL=$(bashio::config 'gitmail') git config --system http.sslVerify false git config --system credential.helper 'cache --timeout 7200' git config --system user.name ${GITUSER} git config --system user.password ${GITPASS} git config --system user.email ${GITMAIL} -export GITHUB_API_TOKEN=$(bashio::config 'GIT-API') + +if [ bashio::config.has_value 'git-api']; then +export GITHUB_API_TOKEN=$(bashio::config 'git-api') +fi bashio::log.info "... parse addons" for addons in $(bashio::config "addon|keys"); do