From a178ebd2b53fda98c05c8686c54c018684851373 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 8 Feb 2021 13:39:43 +0100 Subject: [PATCH] Update run.sh --- addons_updater/run.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/addons_updater/run.sh b/addons_updater/run.sh index bd0841381..81074712c 100644 --- a/addons_updater/run.sh +++ b/addons_updater/run.sh @@ -20,7 +20,8 @@ LOGINFO="... setting github API" && if [ $VERBOSE = true ]; then bashio::log.inf export GITHUB_API_TOKEN=$(bashio::config 'gitapi') fi -bashio::log.info "... parse addons" +LOGINFO="... parse addons" && if [ $VERBOSE = true ]; then bashio::log.info $LOGINFO; fi + for addons in $(bashio::config "addon|keys"); do SLUG=$(bashio::config "addon[${addons}].slug") REPOSITORY=$(bashio::config "addon[${addons}].repository") @@ -84,7 +85,7 @@ if [ $files != null ]; then git commit -m "Update to $LASTVERSION" /data/${BASENAME}/${SLUG}/CHANGELOG.md || true #Git commit and push - LOGINFO="... $SLUG : push to github && if [ $VERBOSE = true ]; then bashio::log.info $LOGINFO; fi + LOGINFO="... $SLUG : push to github" && if [ $VERBOSE = true ]; then bashio::log.info $LOGINFO; fi git remote set-url origin "https://${GITUSER}:${GITPASS}@github.com/${REPOSITORY}" | echo git push | echo "No changes"