Corrected

This commit is contained in:
Alexandre
2022-04-27 17:01:32 +02:00
committed by GitHub
parent d8914c7d55
commit e0131994f4

View File

@@ -183,7 +183,7 @@ if [ -f /data/"$BASENAME"/"$f"/updater.json ]; then
LOGINFO="... $SLUG : push to github" && if [ "$VERBOSE" = true ]; then bashio::log.info "$LOGINFO"; fi
# if API is set
if bashio::config.has_value 'gitmail'; then
if bashio::config.has_value 'gitapi'; then
git remote set-url origin "https://${GITUSER}:${GITHUB_API_TOKEN}@github.com/${REPOSITORY}" &>/dev/null
else
git remote set-url origin "https://${GITUSER}:${GITPASS}@github.com/${REPOSITORY}" &>/dev/null