From d9fa107dd1422f5fec6955c0ce02814849185bc9 Mon Sep 17 00:00:00 2001 From: Jonathan Anderson Date: Mon, 13 May 2024 10:54:32 -0230 Subject: [PATCH] Allow overriding of GDB and LLDB paths. If there are multiple versions of a debugger installed (e.g., lldb17 and lldb18), allow the user to specify which one we are installing for. --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 175b2062..6faabb79 100755 --- a/install.sh +++ b/install.sh @@ -24,8 +24,8 @@ END exit 1 } -GDB=$(command -v gdb) -LLDB=$(command -v lldb) +: ${GDB:=$(command -v gdb)} +: ${LLDB:=$(command -v lldb)} APT_GET=$(command -v apt-get) YUM_YUM=$(command -v yum) YUM_DNF=$(command -v dnf)