mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-23 09:11:50 +02:00
Update 99-run.sh
This commit is contained in:
@@ -129,9 +129,11 @@ for addons in $(bashio::config "addon|keys"); do
|
|||||||
|
|
||||||
#Change all instances of version
|
#Change all instances of version
|
||||||
LOGINFO="... $SLUG : updating files" && if [ $VERBOSE = true ]; then bashio::log.info $LOGINFO; fi
|
LOGINFO="... $SLUG : updating files" && if [ $VERBOSE = true ]; then bashio::log.info $LOGINFO; fi
|
||||||
sed -i "s/${CURRENT}/${LASTVERSION}/g" /data/${BASENAME}/${SLUG}/config.json
|
for files in "config.json" "config.yaml" "Dockerfile" "build.json" "build.yaml";do
|
||||||
sed -i "s/${CURRENT}/${LASTVERSION}/g" /data/${BASENAME}/${SLUG}/Dockerfile || true #Allow absence of Dockerfile
|
if [ -f /data/${BASENAME}/${SLUG}/$files ]; then
|
||||||
[ -f "/data/${BASENAME}/${SLUG}/build.json" ] && sed -i "s/${CURRENT}/${LASTVERSION}/g" /data/${BASENAME}/${SLUG}/build.json || true #Allow absence of build.json
|
sed -i "s/${CURRENT}/${LASTVERSION}/g" /data/${BASENAME}/${SLUG}/$files
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
# Remove " and modify version
|
# Remove " and modify version
|
||||||
LASTVERSION=${LASTVERSION//\"/}
|
LASTVERSION=${LASTVERSION//\"/}
|
||||||
|
|||||||
Reference in New Issue
Block a user