Update 99-run.sh

This commit is contained in:
Alexandre
2023-08-25 23:59:40 +02:00
committed by GitHub
parent 6c2a4de541
commit cb047ee639

View File

@@ -41,8 +41,8 @@ if [ ! -d "/data/$BASENAME" ]; then
else
LOGINFO="... updating ${REPOSITORY}" && if [ "$VERBOSE" = true ]; then bashio::log.info "$LOGINFO"; fi
cd "/data/$BASENAME" || exit
git pull --rebase origin/master >/dev/null || git reset --hard origin/master >/dev/null
git pull --rebase origin/master >/dev/null || ( rm -r "/data/$BASENAME" && git clone "https://github.com/${REPOSITORY}" )
git pull --rebase origin >/dev/null || git reset --hard origin/master >/dev/null
git pull --rebase origin >/dev/null || ( rm -r "/data/$BASENAME" && git clone "https://github.com/${REPOSITORY}" )
fi
LOGINFO="... parse addons" && if [ "$VERBOSE" = true ]; then bashio::log.info "$LOGINFO"; fi