1
0
Fork 0
mirror of https://github.com/overleaf/toolkit.git synced 2025-04-19 07:18:06 +02:00

Relaunch bin/upgrade after pulling changes via git

This commit is contained in:
Jakob Ackermann 2024-02-26 11:53:08 +00:00
parent 28d37006d4
commit e2cbe387e0
No known key found for this signature in database
GPG key ID: 30C56800FCA3828A

View file

@ -218,6 +218,8 @@ function handle_git_update() {
echo "Current commit is $current_commit"
echo "Updating code..."
git -C "$TOOLKIT_ROOT" pull origin "$current_branch"
echo "Relaunching bin/upgrade after code update"
exec $0 --skip-git-update
fi
fi
}
@ -228,7 +230,11 @@ function __main__() {
usage && exit
fi
handle_git_update
if [[ "${1:-null}" == "--skip-git-update" ]]; then
echo "Skipping git update"
else
handle_git_update
fi
read_seed_image_version
read_image_version