Update run.sh

This commit is contained in:
Alexandre
2021-01-31 17:22:25 +01:00
committed by GitHub
parent 262f534c61
commit f299cdc44f

View File

@@ -36,7 +36,7 @@ for addons in $(bashio::config "addon|keys"); do
bashio::log.info "... $SLUG : updating ${REPOSITORY}"
cd "/data/$BASENAME"
git fetch
if [ "$(git rev-parse HEAD)" !== "$(git rev-parse @{u})" ]; then
if [[ "$(git rev-parse HEAD)" !== "$(git rev-parse @{u})" ]]; then
git pull --ff-only
fi
fi