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

[bin/upgrade] skip user prompt for downloading changes

This commit is contained in:
Jakob Ackermann 2020-11-24 16:07:56 +00:00
parent 45368bbad4
commit 4b48169a56
No known key found for this signature in database
GPG key ID: 30C56800FCA3828A
2 changed files with 2 additions and 11 deletions

View file

@ -2,7 +2,7 @@
## TBD
### Added
- `bin/upgrade` displays any changes to the changelog and requires extra
- `bin/upgrade` displays any changes to the changelog and prompts for
confirmation before applying the remote changes to the local branch.
## 2020-11-19

View file

@ -166,16 +166,7 @@ function handle_git_update() {
echo "No code update available for download"
else
echo "Code update available for download!"
local should_fetch="n"
read -r -p "Proceed to download update? [y/n] " should_fetch
if [[ ! "$should_fetch" =~ [Yy] ]]; then
echo "Continuing without downloading update"
else
echo "Downloading new code..."
git -C "$TOOLKIT_ROOT" fetch origin "$current_branch"
fi
git -C "$TOOLKIT_ROOT" fetch origin "$current_branch"
fi
if ! is_up_to_date_with_remote "$current_branch"; then