mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 18:31:02 +01:00
Switch to data
This commit is contained in:
@@ -24,18 +24,18 @@ for addons in $(bashio::config "addon|keys"); do
|
||||
|
||||
#Update local version
|
||||
bashio::log.info "... $SLUG : cloning ${REPOSITORY}"
|
||||
cd /
|
||||
git clone "https://github.com/${REPOSITORY}" || cd "/${BASENAME}" && git fetch --all && git reset --hard origin/master
|
||||
cd /data/
|
||||
git clone "https://github.com/${REPOSITORY}" || cd "/data/${BASENAME}" && git fetch --all && git reset --hard origin/master
|
||||
|
||||
#Define the folder addon
|
||||
bashio::log.info "... $SLUG : checking slug exists in repo"
|
||||
cd /${BASENAME}/${SLUG} || bashio::log.error "$SLUG addon not found in this repository. Exiting." exit
|
||||
cd /data/${BASENAME}/${SLUG} || bashio::log.error "$SLUG addon not found in this repository. Exiting." exit
|
||||
|
||||
#Find current version
|
||||
bashio::log.info "... $SLUG : get current version"
|
||||
CURRENT=$(jq .version config.json) || bashio::log.error "$SLUG addon version in config.json not found. Exiting." exit
|
||||
#Prepare tag flag
|
||||
|
||||
|
||||
#Prepare tag flag
|
||||
if [ ${FULLTAG} = true ]; then
|
||||
bashio::log.info "... $SLUG : fulltag is on"
|
||||
FULLTAG="--format tag"
|
||||
|
||||
Reference in New Issue
Block a user