From a2116b12ed7cb40b28e98f209eddf76167032eca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Lien=20Sell=C3=A6g?= Date: Fri, 28 Sep 2018 12:44:52 +0200 Subject: [PATCH] exit if cd fails --- .appveyor.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.appveyor.sh b/.appveyor.sh index 1c28532..e508ba2 100755 --- a/.appveyor.sh +++ b/.appveyor.sh @@ -1,8 +1,8 @@ set -x -cd ${APPVEYOR_BUILD_FOLDER} +cd "${APPVEYOR_BUILD_FOLDER}" || exit 1 git submodule update --init --recursive mkdir -p build -cd build +cd build || exit 1 export PATH="/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/WINDOWS/system32:/c/WINDOWS:/c/WINDOWS/System32/Wbem:/c/WINDOWS/System32/WindowsPowerShell/v1.0:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl" exec bash -c "set -x && cmake -G\"MSYS Makefiles\" -DCMAKE_INSTALL_PREFIX=/mingw64 -DBUILD_TESTING=1 .. && make && make test"