From: Magnus Jacobsson Date: Wed, 15 Sep 2021 17:04:28 +0000 (+0200) Subject: ci/build.sh: CMake: use pushd and popd instead of cd X-Git-Tag: 2.49.1~18^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a10113bc682eb6c7b0d20edbbaa04e3d637531ad;p=graphviz ci/build.sh: CMake: use pushd and popd instead of cd --- diff --git a/ci/build.sh b/ci/build.sh index 990a3b099..5667bad56 100755 --- a/ci/build.sh +++ b/ci/build.sh @@ -28,11 +28,11 @@ mkdir -p ${DIR}/source build_system=${build_system:-autotools} if [ "${build_system}" = "cmake" ]; then mkdir build - cd build + pushd build cmake ${CMAKE_OPTIONS:-} .. cmake --build . cpack - cd .. + popd if [ "${OSTYPE}" = "linux-gnu" ]; then if [ "${ID_LIKE:-}" = "debian" ]; then mv build/*.deb ${DIR}/os/${ARCH}/