ci: sr.ht: fix linux build tag
authorMichael Wallner <mike@php.net>
Sun, 27 Dec 2020 11:42:10 +0000 (12:42 +0100)
committerMichael Wallner <mike@php.net>
Sun, 27 Dec 2020 11:42:10 +0000 (12:42 +0100)
.builds/scripts/notify-gitter

index cac46b7598a0f6797ffc8ad1f169f6cbd40e0eb0..cee859b75d858e1e09cad347af5987a29cbef1bf 100755 (executable)
@@ -12,7 +12,7 @@ BUILD_URL=${JOB_URL}
 BUILD_TAG=$(uname -o 2>/dev/null || uname -s)
 if expr match "$BUILD_TAG" ".*Linux" >/dev/null
 then
-       BUILD_TAG=$(lsb_release -irs)
+       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