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}"