Skip to content

Commit 0c1c5ac

Browse files
committed
Fix OS_NAME
So that it works on both linux and osx
1 parent 1adddb0 commit 0c1c5ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ install:
5151
before_script:
5252
- 'export INSTALL_DEST=${INSTALL_DEST:-/opt/python}'
5353
- export LSB_RELEASE=$(lsb_release -rs 2>/dev/null || sw_vers -productVersion | sed 's/^\([0-9][0-9]*.[0-9][0-9]*\).*/\1/')
54-
- 'export OS_NAME=${OS_NAME:-$(lsb_release -is 2>/dev/null | tr "A-Z" "a-z" || echo "osx" | tr "A-Z" "a-z")}'
54+
- 'export OS_NAME=$((lsb_release -is 2>/dev/null || echo "osx") | tr [[:upper:]] [[:lower:]])'
5555
- 'export ARCH=${ARCH:-$(uname -m)}'
5656
- 'export PACKAGES=${PACKAGES:-pip nose pytest mock wheel}'
5757
- 'export CPYTHON_ONLY_PKGS="numpy"'

0 commit comments

Comments
 (0)