diff --git a/addons_updater/run.sh b/addons_updater/run.sh index 81537226b..bc68678ff 100644 --- a/addons_updater/run.sh +++ b/addons_updater/run.sh @@ -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"