From: Michael Wallner Date: Sun, 27 Dec 2020 12:46:12 +0000 (+0100) Subject: ci: expr's match operator is not portable X-Git-Tag: 1.1.0-beta2~5 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=a7c93d844be06bb2106d0aec791d220532bcb1dd;p=awesomized%2Flibmemcached ci: expr's match operator is not portable --- diff --git a/.builds/scripts/notify-gitter b/.builds/scripts/notify-gitter index cee859b7..05124544 100755 --- a/.builds/scripts/notify-gitter +++ b/.builds/scripts/notify-gitter @@ -10,12 +10,12 @@ REF_URL=https://github.com/${REPO}/commits/${REF} BUILD_URL=${JOB_URL} BUILD_TAG=$(uname -o 2>/dev/null || uname -s) -if expr match "$BUILD_TAG" ".*Linux" >/dev/null +if expr "$BUILD_TAG" : ".*Linux" >/dev/null then BUILD_TAG=$(source /etc/os-release; echo $PRETTY_NAME) fi BUILD_CXX=$(c++ --version | head -1) -if expr match "${BUILD_CXX}" "${BUILD_TAG}" >/dev/null +if expr "${BUILD_CXX}" : "${BUILD_TAG}" >/dev/null then BUILD_ENV="${BUILD_CXX}" else