From 45c28a52cf045c0726559b344d2800723aba13c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Ramos=20Carre=C3=B1o?= Date: Mon, 17 Feb 2025 11:46:25 +0000 Subject: [PATCH] configure: replace `which` command with `command -v` The command `which` is not present in some contexts, such as docker. It is better to just use `command -v`, which is builtin into the shell. Fixes #3 --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 7d2d19f..ebfc2f4 100755 --- a/configure +++ b/configure @@ -79,9 +79,9 @@ echo $ECHO_N "Finding Data file location ... $ECHO_C" datadir=`$ASPELL dump config data-dir` echo $datadir -echo "ASPELL = `which $ASPELL`" > Makefile +echo "ASPELL = `command -v $ASPELL`" > Makefile echo "ASPELL_FLAGS = $ASPELL_FLAGS" >> Makefile -echo "PREZIP = `which $PREZIP`" >> Makefile +echo "PREZIP = `command -v $PREZIP`" >> Makefile echo "DESTDIR = $DESTDIR" >> Makefile echo "dictdir = $dictdir" >> Makefile echo "datadir = $datadir" >> Makefile