mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-07 16:15:55 +02:00
Update 99-run.sh
This commit is contained in:
@@ -18,7 +18,7 @@ GITPASS=$(bashio::config 'gitpass')
|
|||||||
GITMAIL=$(bashio::config 'gitmail')
|
GITMAIL=$(bashio::config 'gitmail')
|
||||||
git config --system http.sslVerify false
|
git config --system http.sslVerify false
|
||||||
git config --system credential.helper 'cache --timeout 7200'
|
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.password "${GITPASS}"
|
||||||
git config --system user.email "${GITMAIL}"
|
git config --system user.email "${GITMAIL}"
|
||||||
|
|
||||||
@@ -48,7 +48,7 @@ for addons in $(bashio::config "addon|keys"); do
|
|||||||
git clone "https://github.com/${REPOSITORY}"
|
git clone "https://github.com/${REPOSITORY}"
|
||||||
else
|
else
|
||||||
LOGINFO="... $SLUG : updating ${REPOSITORY}" && if [ "$VERBOSE" = true ]; then bashio::log.info "$LOGINFO"; fi
|
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 || git reset --hard &>/dev/null
|
||||||
git pull --rebase &>/dev/null
|
git pull --rebase &>/dev/null
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user