From bd3a031defb63c8171e942938940bdbd3f288ee9 Mon Sep 17 00:00:00 2001 From: Matthieu Bronner Date: Mon, 9 Feb 2026 16:17:17 +0100 Subject: [PATCH 1/2] Fix install.sh script --- CHANGELOG.md | 2 ++ dists/install.sh | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3637d3ea6..e94c57c42 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## To Be Released +* fix(dist): fix the `install.sh` script + ## 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 From 3957eb560e6590e347ae460d2e67544cca3e616a Mon Sep 17 00:00:00 2001 From: matthieu526-scalingo Date: Mon, 9 Feb 2026 16:22:20 +0100 Subject: [PATCH 2/2] Update CHANGELOG.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e94c57c42..4d807d6ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## To Be Released -* fix(dist): fix the `install.sh` script +* fix(dist): improve version detection in `install.sh` ## 1.43.0