From 35011142e1bb2e8cedd57144767901b211b88f34 Mon Sep 17 00:00:00 2001 From: Moe-hacker Date: Thu, 30 May 2024 12:20:08 +0800 Subject: [PATCH] Fix configure script --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index a8b5d260..c756ffc1 100755 --- a/configure +++ b/configure @@ -41,10 +41,10 @@ init() { fi printf "checking for compiler... " if [ !$CC ]; then - if [ ! $(which cc) ]; then + if [ ! $(command -v cc) ]; then error "not found" fi - CC=$(realpath $(which cc)) + CC=$(realpath $(command -v cc)) export CC=${CC##*/} fi printf "$CC\n"