From 11a966eeb4fcd88e251fb9d77a18d6b67c36dd61 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Wed, 18 Sep 2024 08:00:13 +0200 Subject: Replace which(1) with posix command -v in configure.sh --- configure.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.sh b/configure.sh index 06688e8..fcf2dce 100755 --- a/configure.sh +++ b/configure.sh @@ -21,7 +21,7 @@ detectarch() { } validatecc() { - if ! (which "$CC" >/dev/null 2>&1) ; then + if ! (command -v "$CC" >/dev/null 2>&1) ; then echo "Error: compiler '$CC' not found" exit 1 fi -- cgit v1.3