mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-18 14:51:50 +02:00
Switch to data
This commit is contained in:
@@ -24,18 +24,18 @@ for addons in $(bashio::config "addon|keys"); do
|
|||||||
|
|
||||||
#Update local version
|
#Update local version
|
||||||
bashio::log.info "... $SLUG : cloning ${REPOSITORY}"
|
bashio::log.info "... $SLUG : cloning ${REPOSITORY}"
|
||||||
cd /
|
cd /data/
|
||||||
git clone "https://github.com/${REPOSITORY}" || cd "/${BASENAME}" && git fetch --all && git reset --hard origin/master
|
git clone "https://github.com/${REPOSITORY}" || cd "/data/${BASENAME}" && git fetch --all && git reset --hard origin/master
|
||||||
|
|
||||||
#Define the folder addon
|
#Define the folder addon
|
||||||
bashio::log.info "... $SLUG : checking slug exists in repo"
|
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
|
#Find current version
|
||||||
bashio::log.info "... $SLUG : get 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
|
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
|
if [ ${FULLTAG} = true ]; then
|
||||||
bashio::log.info "... $SLUG : fulltag is on"
|
bashio::log.info "... $SLUG : fulltag is on"
|
||||||
FULLTAG="--format tag"
|
FULLTAG="--format tag"
|
||||||
|
|||||||
Reference in New Issue
Block a user