Skip to content

Commit fb1f569

Browse files
committed
Fix LSB_RELEASE definition
${$(sw_vers -productVersion)%*.*})} results in "bad substitution"
1 parent 3f79ed1 commit fb1f569

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ matrix:
1919
os: osx
2020
osx_image: xcode7.3
2121
env:
22-
- RELEASE=sierra
22+
- RELEASE=elcapitan
2323
- language: c
2424
os: osx
2525
osx_image: xcode6.4
@@ -46,7 +46,7 @@ install:
4646

4747
before_script:
4848
- 'export INSTALL_DEST=${INSTALL_DEST:-/opt/python}'
49-
- 'export LSB_RELEASE=${LSB_RELEASE:-$(lsb_release -rs || echo ${$(sw_vers -productVersion)%*.*})}'
49+
- export LSB_RELEASE=$(lsb_release -rs 2>/dev/null || sw_vers -productVersion | sed 's/^\([0-9][0-9]*.[0-9][0-9]*\).*/\1/')
5050
- 'export OS_NAME=${OS_NAME:-$(lsb_release -is | tr "A-Z" "a-z" || echo "osx")}'
5151
- 'export ARCH=${ARCH:-$(uname -m)}'
5252
- 'export PACKAGES=${PACKAGES:-pip nose pytest mock wheel}'

0 commit comments

Comments
 (0)