Switch to data

This commit is contained in:
Alexandre
2021-01-31 11:43:19 +01:00
committed by GitHub
parent 5a06a3f159
commit bda6e511fc

View File

@@ -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"