From 84fa12f646ec50001238c4f8ce9d32742267c393 Mon Sep 17 00:00:00 2001 From: Alexandre Date: Thu, 17 Feb 2022 15:24:58 +0100 Subject: [PATCH] Update 99-run.sh --- addons_updater/rootfs/etc/cont-init.d/99-run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons_updater/rootfs/etc/cont-init.d/99-run.sh b/addons_updater/rootfs/etc/cont-init.d/99-run.sh index ca5ffd6f3..a650c9fb8 100644 --- a/addons_updater/rootfs/etc/cont-init.d/99-run.sh +++ b/addons_updater/rootfs/etc/cont-init.d/99-run.sh @@ -18,7 +18,7 @@ GITPASS=$(bashio::config 'gitpass') GITMAIL=$(bashio::config 'gitmail') git config --system http.sslVerify false git config --system credential.helper 'cache --timeout 7200' -git config --system user.name ${GITUSER} +git config --system user.name "${GITUSER}" git config --system user.password "${GITPASS}" git config --system user.email "${GITMAIL}" @@ -48,7 +48,7 @@ for addons in $(bashio::config "addon|keys"); do git clone "https://github.com/${REPOSITORY}" else LOGINFO="... $SLUG : updating ${REPOSITORY}" && if [ "$VERBOSE" = true ]; then bashio::log.info "$LOGINFO"; fi - cd "/data/$BASENAME" + cd "/data/$BASENAME" || exit git pull --rebase &>/dev/null || git reset --hard &>/dev/null git pull --rebase &>/dev/null fi