From ff3775306048c19640a8d5512ea19403daf85303 Mon Sep 17 00:00:00 2001 From: falkTX Date: Mon, 25 Sep 2023 22:04:29 +0200 Subject: [PATCH] do not error out when needed tools are missing Signed-off-by: falkTX --- setup/env.sh | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/setup/env.sh b/setup/env.sh index 6628eb2..0bb9219 100644 --- a/setup/env.sh +++ b/setup/env.sh @@ -212,19 +212,11 @@ fi # --------------------------------------------------------------------------------------------------------------------- # find needed programs -if [ -z "${SOURCING_FILES}" ]; then - set +e -fi - -autoconf=$(command -v autoconf) -cmake=$(command -v cmake) -jq=$(command -v jq) -meson=$(command -v meson) -ninja=$(command -v ninja) - -if [ -z "${SOURCING_FILES}" ]; then - set -e -fi +autoconf=$(command -v autoconf || true) +cmake=$(command -v cmake || true) +jq=$(command -v jq || true) +meson=$(command -v meson || true) +ninja=$(command -v ninja || true) if [ -z "${autoconf}" ] && [ -e "/opt/homebrew/bin/autoconf" ]; then autoconf="/opt/homebrew/bin/autoconf"