From 494c5071b52b977dc52fed6ad208996fdf19a36f Mon Sep 17 00:00:00 2001 From: TK <61820360+TomKovac@users.noreply.github.com> Date: Fri, 9 Jan 2026 07:35:20 +0100 Subject: [PATCH 1/2] Create draft PR for #950 From 2a127f2bf738084937328c15af9ddef3d7044de0 Mon Sep 17 00:00:00 2001 From: TK <61820360+TomKovac@users.noreply.github.com> Date: Fri, 9 Jan 2026 07:41:33 +0100 Subject: [PATCH 2/2] Fix minor bugs in apax version messages in check requisites scripts --- scripts/check_requisites.ps1 | 2 +- src/scripts/check_requisites_apax.sh | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/check_requisites.ps1 b/scripts/check_requisites.ps1 index 7f3e1b9dd..f6173b649 100644 --- a/scripts/check_requisites.ps1 +++ b/scripts/check_requisites.ps1 @@ -79,7 +79,7 @@ try else { Write-Host "Apax version mismatch. Expected $apaxRequiredVersion but found $apaxVersion." -ForegroundColor Red - Write-Host "Run apax self-update $apaxVersion." -ForegroundColor Red + Write-Host "Run apax self-update $apaxRequiredVersion." -ForegroundColor Red } } catch diff --git a/src/scripts/check_requisites_apax.sh b/src/scripts/check_requisites_apax.sh index 083342fb3..9a0dda8ec 100644 --- a/src/scripts/check_requisites_apax.sh +++ b/src/scripts/check_requisites_apax.sh @@ -76,10 +76,11 @@ if ! is_apax_installed ; then printf "${RED}Apax is not installed or not found in PATH. You need to have a valid SIMATIC-AX license.${NC}" exit 1 elif ! is_apax_version_equal "$expectedApaxVersion" ; then - printf "${RED}Apax installed, but version found does not match the verion required $expectedApaxVersion.${NC}" + printf "${RED}Apax installed, but the version found does not match the version required $expectedApaxVersion.${NC}" + printf "${RED}Run 'apax self-update $expectedApaxVersion'.${NC}" exit 1 else - printf "${GREEN}Apax installed, verion matches required $expectedApaxVersion.${NC}" + printf "${GREEN}Apax installed, version matches required $expectedApaxVersion.${NC}" if ! is_apax_site_accessible ; then printf "${RED}Failed to access feed: $apaxUrl. Error: HTTP status $response.${NC}" printf "${RED}Try to access it manually, check your connection, firewall settings, credentials, etc.${NC}"