mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-30 20:34:04 +02:00
Update run.sh
This commit is contained in:
@@ -81,7 +81,8 @@ for addons in $(bashio::config "addon|keys"); do
|
|||||||
|
|
||||||
# Remove " and modify version
|
# Remove " and modify version
|
||||||
LASTVERSION=${LASTVERSION//\"}
|
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
|
jq --arg variable $LASTVERSION '.version = $variable' /data/${BASENAME}/${SLUG}/config.json | sponge /data/${BASENAME}/${SLUG}/config.json # Replace version tag
|
||||||
|
|
||||||
#Update changelog
|
#Update changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user