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:
parent
28d37006d4
commit
e2cbe387e0
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue