From: Viktor Szakats Date: Wed, 8 Jan 2025 12:03:20 +0000 (+0100) Subject: appveyor: tidy up shell code X-Git-Tag: curl-8_12_0~181 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8a1ee2b47d8d1cf79420e11fcf0e23235c668bf8;p=thirdparty%2Fcurl.git appveyor: tidy up shell code Closes #15940 --- diff --git a/appveyor.sh b/appveyor.sh index 42fd213377..3de37a6276 100644 --- a/appveyor.sh +++ b/appveyor.sh @@ -63,15 +63,9 @@ if [ "${BUILD_SYSTEM}" = 'CMake' ]; then fi echo 'curl_config.h'; grep -F '#define' _bld/lib/curl_config.h | sort || true # shellcheck disable=SC2086 - if ! cmake --build _bld --config "${PRJ_CFG}" --parallel 2 -- ${BUILD_OPT:-}; then - false - fi - if [ "${SHARED}" = 'ON' ]; then - PATH="$PWD/_bld/lib:$PATH" - fi - if [ "${OPENSSL}" = 'ON' ]; then - PATH="$PWD/_bld/lib:${openssl_root}:$PATH" - fi + cmake --build _bld --config "${PRJ_CFG}" --parallel 2 -- ${BUILD_OPT:-} + [ "${SHARED}" = 'ON' ] && PATH="$PWD/_bld/lib:$PATH" + [ "${OPENSSL}" = 'ON' ] && PATH="${openssl_root}:$PATH" curl='_bld/src/curl.exe' elif [ "${BUILD_SYSTEM}" = 'VisualStudioSolution' ]; then ( @@ -116,15 +110,15 @@ fi # build tests -if [[ "${TFLAGS}" != 'skipall' ]] && \ +if [ "${TFLAGS}" != 'skipall' ] && \ [ "${BUILD_SYSTEM}" = 'CMake' ]; then cmake --build _bld --config "${PRJ_CFG}" --parallel 2 --target testdeps fi # run tests -if [[ "${TFLAGS}" != 'skipall' ]] && \ - [[ "${TFLAGS}" != 'skiprun' ]]; then +if [ "${TFLAGS}" != 'skipall' ] && \ + [ "${TFLAGS}" != 'skiprun' ]; then if [ -x "$(cygpath "${SYSTEMROOT}/System32/curl.exe")" ]; then TFLAGS+=" -ac $(cygpath "${SYSTEMROOT}/System32/curl.exe")" elif [ -x "$(cygpath 'C:/msys64/usr/bin/curl.exe')" ]; then @@ -144,7 +138,7 @@ fi # build examples -if [[ "${EXAMPLES}" = 'ON' ]] && \ +if [ "${EXAMPLES}" = 'ON' ] && \ [ "${BUILD_SYSTEM}" = 'CMake' ]; then cmake --build _bld --config "${PRJ_CFG}" --parallel 2 --target curl-examples fi