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:
parent
45368bbad4
commit
4b48169a56
2 changed files with 2 additions and 11 deletions
|
@ -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
|
||||
|
|
11
bin/upgrade
11
bin/upgrade
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue