mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-28 11:24:04 +02:00
Update 99-run.sh
This commit is contained in:
@@ -145,6 +145,11 @@ for addons in $(bashio::config "addon|keys"); do
|
|||||||
sed -i "1i " /data/${BASENAME}/${SLUG}/CHANGELOG.md
|
sed -i "1i " /data/${BASENAME}/${SLUG}/CHANGELOG.md
|
||||||
LOGINFO="... $SLUG : files updated" && if [ $VERBOSE = true ]; then bashio::log.info $LOGINFO; fi
|
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 commit and push
|
||||||
git add -A # add all modified files
|
git add -A # add all modified files
|
||||||
git commit -m "Updater bot : $SLUG updated to ${LASTVERSION}" >/dev/null
|
git commit -m "Updater bot : $SLUG updated to ${LASTVERSION}" >/dev/null
|
||||||
|
|||||||
Reference in New Issue
Block a user