Update run.sh

This commit is contained in:
Alexandre
2021-02-22 08:28:04 +01:00
committed by GitHub
parent 8c35568a17
commit c3e89e8cc5

View File

@@ -81,7 +81,8 @@ for addons in $(bashio::config "addon|keys"); do
# Remove " and modify version
LASTVERSION=${LASTVERSION//\"}
CURRENT=${CURRENT//\"}
CURRENT=${CURRENT//\"}
if [ ${#LASTVERSION} > 7 ]; then LASTVERSION=${LASTVERSION: -8}; fi
jq --arg variable $LASTVERSION '.version = $variable' /data/${BASENAME}/${SLUG}/config.json | sponge /data/${BASENAME}/${SLUG}/config.json # Replace version tag
#Update changelog