Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(install): disable CLI update checker #710

Merged
merged 1 commit into from
Jan 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

* feat(logs): allow to filter logs to only show router logs [#707](https://github.com/Scalingo/cli/pull/707)
* build(deps): bump github.com/briandowns/spinner from 1.16.0 to 1.18.0
* fix(install): correctly parse the old and new versions [#710](https://github.com/Scalingo/cli/pull/710)

### 1.22.0

Expand Down
5 changes: 3 additions & 2 deletions dists/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,9 @@ main() {
target="$target_dir/scalingo"

if [ -x "$target" -a -z "$yes_to_overwrite" ] ; then
new_version=$($exe_path -v | cut -d' ' -f4)
old_version=$("$target" -v | cut -d' ' -f4)
export DISABLE_UPDATE_CHECKER=true
new_version=$($exe_path --version | cut -d' ' -f4)
old_version=$("$target" --version | cut -d' ' -f4)
warn "Scalingo client is already installed (version ${old_version})\n"
info "Do you want to replace it with version ${new_version}? [Y/n] "

Expand Down