From a7c93d844be06bb2106d0aec791d220532bcb1dd Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Sun, 27 Dec 2020 13:46:12 +0100 Subject: [PATCH] ci: expr's match operator is not portable --- .builds/scripts/notify-gitter | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.30.2