Update 99-run.sh

This commit is contained in:
Alexandre
2022-01-21 18:10:35 +01:00
committed by GitHub
parent bd56306d8c
commit 80c26a850c

View File

@@ -145,6 +145,11 @@ for addons in $(bashio::config "addon|keys"); do
sed -i "1i " /data/${BASENAME}/${SLUG}/CHANGELOG.md
LOGINFO="... $SLUG : files updated" && if [ $VERBOSE = true ]; then bashio::log.info $LOGINFO; fi
#Build new version if requested
if [ -f /data/${BASENAME}/${SLUG}/builder ]; then
sed -i "1i ${LASTVERSION}" /data/${BASENAME}/${SLUG}/builder
fi
#Git commit and push
git add -A # add all modified files
git commit -m "Updater bot : $SLUG updated to ${LASTVERSION}" >/dev/null