mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 05:44:03 +02:00
Added case of current error
This commit is contained in:
@@ -48,7 +48,9 @@ for addons in $(bashio::config "addon|keys"); do
|
|||||||
bashio::log.info "... $SLUG : updating files"
|
bashio::log.info "... $SLUG : updating files"
|
||||||
|
|
||||||
files=$(grep -rl '"'${CURRENT}'"' /${BASENAME}/${SLUG}) && echo $files | xargs sed -i 's/"'${CURRENT}'"/"'${LASTVERSION}'"/g'
|
files=$(grep -rl '"'${CURRENT}'"' /${BASENAME}/${SLUG}) && echo $files | xargs sed -i 's/"'${CURRENT}'"/"'${LASTVERSION}'"/g'
|
||||||
git commit -m "Bot update to $CURRENT" $files
|
|
||||||
|
if [ $files != "" ]; then
|
||||||
|
git commit -m "Bot update to $CURRENT" $files || true
|
||||||
|
|
||||||
#Git commit and push
|
#Git commit and push
|
||||||
bashio::log.info "... $SLUG : push to master"
|
bashio::log.info "... $SLUG : push to master"
|
||||||
@@ -61,6 +63,9 @@ for addons in $(bashio::config "addon|keys"); do
|
|||||||
|
|
||||||
#Log
|
#Log
|
||||||
bashio::log.info "... $SLUG : updated and published"
|
bashio::log.info "... $SLUG : updated and published"
|
||||||
|
else
|
||||||
|
bashio::log.info "... $SLUG : couldn't update, please check the current version"
|
||||||
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
bashio::log.info "Addon $SLUG is already up-to-date."
|
bashio::log.info "Addon $SLUG is already up-to-date."
|
||||||
|
|||||||
Reference in New Issue
Block a user