From 6a3ce94aaf637db0308e87354b013ad7fd54705d Mon Sep 17 00:00:00 2001 From: Tomi Ollila Date: Sun, 9 Oct 2016 21:48:29 +0300 Subject: [PATCH] test/T000-basic: replaced use of which(1) with shell builtin command -v Some minimal chroot/container environments don't have which(1) installed. --- test/T000-basic.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/T000-basic.sh b/test/T000-basic.sh index d6811bd1..0a8d6cdf 100755 --- a/test/T000-basic.sh +++ b/test/T000-basic.sh @@ -92,7 +92,7 @@ test_expect_equal \ "$(echo $PATH|cut -f1 -d: | sed -e 's,/test/valgrind/bin$,,')" test_begin_subtest 'notmuch is compiled with debugging symbols' -readelf --sections $(which notmuch) | grep \.debug +readelf --sections $(command -v notmuch) | grep \.debug test_expect_equal 0 $? test_done -- 2.26.2