Update run.sh

This commit is contained in:
Alexandre
2021-02-26 20:59:20 +01:00
committed by GitHub
parent bd598f4597
commit e8608aa61a

View File

@@ -97,13 +97,10 @@ for addons in $(bashio::config "addon|keys"); do
#Git commit and push
git add -A # add all modified files
git commit -m "Update to ${LASTVERSION}" >/dev/null
#git commit -m "Update to ${LASTVERSION}" $files || true
#git commit -m "Update to ${LASTVERSION}" /data/${BASENAME}/${SLUG}/config.json|| true
#git commit -m "Update to ${LASTVERSION}" /data/${BASENAME}/${SLUG}/CHANGELOG.md || true
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 >/dev/null | echo "No changes"
git push >/dev/null
#Log
bashio::log.warning "Addon $SLUG updated from ${CURRENT} to ${LASTVERSION}"