Skip to content

Commit f8394f7

Browse files
committed
Always use mkdir -p
This inhibits warnings when the directory to be created already exists.
1 parent b4ce6eb commit f8394f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ install:
2626
# Install a recent version of CMake
2727
- |
2828
CMAKE_URL="https://cmake.org/files/v3.7/cmake-3.7.2-Linux-x86_64.tar.gz"
29-
mkdir cmake
29+
mkdir -p cmake
3030
travis_retry wget --no-check-certificate --quiet -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C cmake
3131
export PATH=${DEPS_DIR}/cmake/bin:${PATH}
3232
3333
# Install a recent version of the Protobuf
3434
- |
3535
PROTOBUF_URL="https://github.com/google/protobuf/releases/download/v3.2.0/protobuf-cpp-3.2.0.tar.gz"
36-
mkdir protobuf
36+
mkdir -p protobuf
3737
travis_retry wget --no-check-certificate --quiet -O - ${PROTOBUF_URL} | tar --strip-components=1 -xz -C protobuf
3838
cd protobuf
3939
./configure --prefix=/usr
@@ -46,7 +46,7 @@ before_script:
4646

4747
# Run the build script.
4848
script:
49-
- mkdir build
49+
- mkdir -p build
5050
- cd build
5151
- cmake ..
5252
- cmake --build .

0 commit comments

Comments
 (0)