Update run.sh

This commit is contained in:
Alexandre
2021-01-31 16:19:52 +01:00
committed by GitHub
parent 2ee586fb9f
commit 198e380188

View File

@@ -35,7 +35,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