Update run.sh

This commit is contained in:
Alexandre
2021-02-17 20:35:08 +01:00
committed by GitHub
parent 9fcdda2f9d
commit 7708e13bca

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 && cd /data/ && git clone "https://github.com/${REPOSITORY}"
git pull --rebase || "rm -r /data/$BASENAME && cd /data/ && git clone https://github.com/${REPOSITORY}"
fi
#Define the folder addon