From 0bb6f80a1e11da0fc208018e2b1eba06762d8886 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 27 Jun 2021 15:07:23 +0200 Subject: [PATCH] Check that lsb_release is available before using it It is not present in e.g. sid-slim image used for wxMSW cross-build CI workflow. --- build/tools/httpbin.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build/tools/httpbin.sh b/build/tools/httpbin.sh index 4243e8b497..c627b09d12 100644 --- a/build/tools/httpbin.sh +++ b/build/tools/httpbin.sh @@ -16,7 +16,9 @@ httpbin_launch() { case "$(uname -s)" in Linux) - dist_codename=$(lsb_release --codename --short) + if command -v lsb_release > /dev/null; then + dist_codename=$(lsb_release --codename --short) + fi ;; Darwin)