From c92086906ae712ffe5cd5dde9ad470f3950695d8 Mon Sep 17 00:00:00 2001 From: Benjamin Gilbert Date: Sat, 23 Sep 2023 06:09:50 -0500 Subject: Fix check for installed LLVM It always succeeds, and then if LLVM isn't installed, crossdev fails with a confusing error: Target architecture not supported by installed LLVM toolchain Signed-off-by: Benjamin Gilbert Closes: https://github.com/gentoo/crossdev/pull/14 Signed-off-by: Sam James --- crossdev | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crossdev b/crossdev index b84b757..f6ad232 100755 --- a/crossdev +++ b/crossdev @@ -1722,7 +1722,7 @@ if ! ex_fast ; then # stage 0: binutils if [[ "${LLVM}" == "yes" ]] ; then - if [[ $(portageq has_version / "sys-devel/llvm") -ne 0 ]] ; then + if ! portageq has_version / "sys-devel/llvm" ; then eerror "LLVM is not installed" exit 1 fi -- cgit v1.2.3-65-gdbad