diff --git a/swift-coverage/swift-coverage-example/xccov-to-sonarqube-generic.sh b/swift-coverage/swift-coverage-example/xccov-to-sonarqube-generic.sh index b76e1c0a..539af605 100644 --- a/swift-coverage/swift-coverage-example/xccov-to-sonarqube-generic.sh +++ b/swift-coverage/swift-coverage-example/xccov-to-sonarqube-generic.sh @@ -25,7 +25,7 @@ function check_xcode_version() { if ! xcode_version="$(xcodebuild -version | sed -n '1s/^Xcode \([0-9.]*\)$/\1/p')"; then echo 'Failed to get Xcode version' 1>&2 exit 1 -elif check_xcode_version ${xcode_version//./ }; then +elif ! check_xcode_version ${xcode_version//./ }; then echo "Xcode version '$xcode_version' not supported, version 13.3 or above is required" 1>&2; exit 1 fi