Update run.sh

This commit is contained in:
Alexandre
2021-02-21 09:21:22 +01:00
parent fd71db4665
commit 99b098cc7b

View File

@@ -78,7 +78,7 @@ for addons in $(bashio::config "addon|keys"); do
#Change all instances of version
LOGINFO="... $SLUG : updating files" && if [ $VERBOSE = true ]; then bashio::log.info $LOGINFO; fi
files=$(grep -rl ${CURRENT} /data/${BASENAME}/${SLUG}) && echo $files | xargs sed -i "s/${CURRENT}/${LASTVERSION}/g" # change all tags in all addon files
jq --arg LASTVERSION "${LASTVERSION}" '.version = ${LASTVERSION}' /data/${BASENAME}/${SLUG}/config.json >/dev/null # Correct config upstream
jq ".version = [${LASTVERSION}]" /data/${BASENAME}/${SLUG}/config.json >/dev/null # Correct config upstream
#Update changelog
touch /data/${BASENAME}/${SLUG}/CHANGELOG.md