Update run.sh

This commit is contained in:
Alexandre
2021-02-17 14:55:04 +01:00
committed by GitHub
parent 0019383e9d
commit d0ffc474c9

View File

@@ -39,7 +39,7 @@ for addons in $(bashio::config "addon|keys"); do
else
LOGINFO="... $SLUG : updating ${REPOSITORY}" && if [ $VERBOSE = true ]; then bashio::log.info $LOGINFO; fi
cd "/data/$BASENAME"
git pull --rebase || rm -R /data/$BASENAME && git pull --rebase
git pull --rebase || rm -R /data/$BASENAME && cd /data/ && git clone "https://github.com/${REPOSITORY}"
fi
#Define the folder addon