ci: expr's match operator is not portable
authorMichael Wallner <mike@php.net>
Sun, 27 Dec 2020 12:46:12 +0000 (13:46 +0100)
committerMichael Wallner <mike@php.net>
Sun, 27 Dec 2020 12:46:12 +0000 (13:46 +0100)
.builds/scripts/notify-gitter

index cee859b75d858e1e09cad347af5987a29cbef1bf..05124544b029f6c8c961b5d64cba1314486cde65 100755 (executable)
@@ -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