Skip to content

Commit 37488af

Browse files
committed
double square brackets for if are not working in travis
1 parent 206239a commit 37488af

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
@@ -108,9 +108,9 @@ matrix:
108108

109109
before_script:
110110
- mkdir -p /tmp/cmake.root
111-
- [[ $TRAVIS_OS_SUFFIX = 'linux' ]]; then CMAKE_PKG_SUFFIX="linux-x86_64"; else CMAKE_PKG_SUFFIX="macos10.10-universal"; fi
111+
- if [ $TRAVIS_OS_SUFFIX = 'linux' ]; then CMAKE_PKG_SUFFIX="linux-x86_64"; else CMAKE_PKG_SUFFIX="macos10.10-universal"; fi
112112
- wget -qO- "https://cmake.org/files/v3.20/cmake-3.20.5-$CMAKE_PKG_SUFFIX.tar.gz" | tar --strip-components=1 -xz -C /tmp/cmake.root
113-
- [[ $TRAVIS_OS_SUFFIX = 'linux' ]]; then CMAKE_BIN_DIR="CMake.app/Contents/bin"; else CMAKE_BIN_DIR="bin"; fi
113+
- if [ $TRAVIS_OS_SUFFIX = 'linux' ]; then CMAKE_BIN_DIR="CMake.app/Contents/bin"; else CMAKE_BIN_DIR="bin"; fi
114114
- export PATH=/tmp/cmake.root/$CMAKE_BIN_DIR:$PATH
115115

116116
# Build and check this project

0 commit comments

Comments
 (0)