macOS: cover minor versions of xcode

uses subshell for getting xcode version
This commit is contained in:
Frank Morgner 2020-05-01 12:48:10 +02:00
parent b08d33ceb6
commit e864aa6d76
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ matrix:
include:
- compiler: clang
os: osx
osx_image: xcode9.4
env: DO_PUSH_ARTIFACT=yes
- compiler: gcc
os: linux

View File

@ -103,7 +103,7 @@ osacompile -o "$BUILDPATH/target/Applications/OpenSC Notify.app" "MacOSX/OpenSC_
# Build OpenSC.tokend when XCode version < 10
if (( xcodebuild -version | sed -En 's/Xcode[[:space:]]+([0-9]+)\.[0-9]*/\1/p' < 10 )); then
if (( $(xcodebuild -version | sed -En 's/Xcode[[:space:]]+([0-9]+)(\.[0-9]*)*/\1/p') < 10 )); then
# Check out OpenSC.tokend, if not already fetched.
if ! test -e OpenSC.tokend; then
git clone http://github.com/OpenSC/OpenSC.tokend.git