From 0019383e9d8bff8a033ec84b6e593cc34abf2969 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 17 Feb 2021 14:52:20 +0100 Subject: [PATCH] Update run.sh --- addons_updater/run.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/addons_updater/run.sh b/addons_updater/run.sh index 9326d7aa3..203fac7e6 100644 --- a/addons_updater/run.sh +++ b/addons_updater/run.sh @@ -39,9 +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 - git status - git reset --hard + git pull --rebase || rm -R /data/$BASENAME && git pull --rebase fi #Define the folder addon