mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-02-07 12:24:52 +01:00
Update run.sh
This commit is contained in:
@@ -78,9 +78,9 @@ 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
|
||||||
#files=$(grep -rl ${CURRENT} /data/${BASENAME}/${SLUG}) && echo $files | xargs sed -i "s/${CURRENT}/${LASTVERSION}/g" # Change all tags in all addon files
|
#files=$(grep -rl ${CURRENT} /data/${BASENAME}/${SLUG}) && echo $files | xargs sed -i "s/${CURRENT}/${LASTVERSION}/g" # Change all tags in all addon files
|
||||||
sed -i 's/${CURRENT}/${LASTVERSION}/g' /data/${BASENAME}/${SLUG}/config.json
|
sed -i "s/${CURRENT}/${LASTVERSION}/g" /data/${BASENAME}/${SLUG}/config.json
|
||||||
sed -i 's/${CURRENT}/${LASTVERSION}/g' /data/${BASENAME}/${SLUG}/Dockerfile
|
sed -i "s/${CURRENT}/${LASTVERSION}/g" /data/${BASENAME}/${SLUG}/Dockerfile
|
||||||
sed -i 's/${CURRENT}/${LASTVERSION}/g' /data/${BASENAME}/${SLUG}/build.json
|
sed -i "s/${CURRENT}/${LASTVERSION}/g" /data/${BASENAME}/${SLUG}/build.json
|
||||||
|
|
||||||
# Remove " and modify version
|
# Remove " and modify version
|
||||||
LASTVERSION=${LASTVERSION//\"}
|
LASTVERSION=${LASTVERSION//\"}
|
||||||
|
|||||||
Reference in New Issue
Block a user