diff --git a/update/update.sh b/update/update.sh index 6cf868e..066fc65 100644 --- a/update/update.sh +++ b/update/update.sh @@ -11,11 +11,12 @@ do then docker compose down --remove-orphans git reset --hard && git clean -fd - git pull > ./update/message + git fetch if [[ -n "$branch" ]] then git checkout -t origin/$branch || git checkout $branch fi + git pull > ./update/message IP=$(curl https://ipinfo.io/ip) VER=$(git describe --tags) docker compose up -d --force-recreate bash $pwd/update/update.sh & exit 0