mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-27 01:36:03 +02:00
Update run
This commit is contained in:
@@ -20,7 +20,7 @@ for addons in $(bashio::config "addon|keys"); do
|
|||||||
UPSTREAM=$(bashio::config "addon[${addons}].upstream")
|
UPSTREAM=$(bashio::config "addon[${addons}].upstream")
|
||||||
CURRENT=$(bashio::config "addon[${addons}].current")
|
CURRENT=$(bashio::config "addon[${addons}].current")
|
||||||
BETA=$(bashio::config "addon[${addons}].beta")
|
BETA=$(bashio::config "addon[${addons}].beta")
|
||||||
BASENAME=$(basename https://github.com/$REPOSITORY)
|
BASENAME=$(basename "https://github.com/$REPOSITORY")
|
||||||
bashio::log.info "... $SLUG : check started"
|
bashio::log.info "... $SLUG : check started"
|
||||||
|
|
||||||
#If beta flag, select beta version
|
#If beta flag, select beta version
|
||||||
@@ -38,7 +38,7 @@ for addons in $(bashio::config "addon|keys"); do
|
|||||||
#Update local version
|
#Update local version
|
||||||
bashio::log.info "... $SLUG : cloning base repo"
|
bashio::log.info "... $SLUG : cloning base repo"
|
||||||
cd /
|
cd /
|
||||||
git clone https://github.com/${REPOSITORY} || cd /${BASENAME} && git fetch --all && git reset --hard origin/master
|
git clone "https://github.com/${REPOSITORY}" || cd "/${BASENAME}" && git fetch --all && git reset --hard origin/master
|
||||||
|
|
||||||
#Define the folder addon
|
#Define the folder addon
|
||||||
bashio::log.info "... $SLUG : checking exists in repo"
|
bashio::log.info "... $SLUG : checking exists in repo"
|
||||||
|
|||||||
Reference in New Issue
Block a user