diff --git a/CHANGELOG.md b/CHANGELOG.md index 3637d3ea6..4d807d6ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## To Be Released +* fix(dist): improve version detection in `install.sh` + ## 1.43.0 * feat(databases next generation): add database plan upgrade command diff --git a/dists/install.sh b/dists/install.sh index 2f4c64a08..c565a049c 100755 --- a/dists/install.sh +++ b/dists/install.sh @@ -178,8 +178,8 @@ main() { if [ -x "$target" ] && [ -z "$yes_to_overwrite" ] ; then export DISABLE_UPDATE_CHECKER=true # Use cut's short parameter to be compatible with MacOS: https://ss64.com/osx/cut.html - new_version=$($exe_path --version | cut -d' ' -f4) - old_version=$("$target" --version | cut -d' ' -f4) + new_version=$($exe_path --version | cut -d' ' -f3) + old_version=$("$target" --version | cut -d' ' -f3) warn "Scalingo client is already installed (version ${old_version})\n" if ! ask "Do you want to replace it with version ${new_version}?" ; then