Skip to content

Commit 45c28a5

Browse files
committed
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 GNUAspell#3
1 parent e93dcb6 commit 45c28a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

configure

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ echo $ECHO_N "Finding Data file location ... $ECHO_C"
7979
datadir=`$ASPELL dump config data-dir`
8080
echo $datadir
8181

82-
echo "ASPELL = `which $ASPELL`" > Makefile
82+
echo "ASPELL = `command -v $ASPELL`" > Makefile
8383
echo "ASPELL_FLAGS = $ASPELL_FLAGS" >> Makefile
84-
echo "PREZIP = `which $PREZIP`" >> Makefile
84+
echo "PREZIP = `command -v $PREZIP`" >> Makefile
8585
echo "DESTDIR = $DESTDIR" >> Makefile
8686
echo "dictdir = $dictdir" >> Makefile
8787
echo "datadir = $datadir" >> Makefile

0 commit comments

Comments
 (0)