From 0e5d0483e5596e200430d28356b808af76806439 Mon Sep 17 00:00:00 2001 From: johnraff Date: Fri, 1 May 2020 11:23:39 +0900 Subject: Replace 'which' with 'command -v' to test for the existance of an executable This is considered to be more robust. Two instances remain: scripts/build/chroot_archives, line 257: if [ "${LB_APT}" = "aptitude" ] && [ ! $(Chroot chroot "which aptitude") ] The command is run inside a chroot where the environment might be special, and would need further testing. manpages/Makefile, line 42: @if [ ! -x "$$(which po4a 2>/dev/null)" ]; \ I am insufficiently familiar with makefile syntax to edit this. --- frontend/live-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontend') diff --git a/frontend/live-build b/frontend/live-build index 29efec9cf..2980158c0 100755 --- a/frontend/live-build +++ b/frontend/live-build @@ -23,7 +23,7 @@ set -e -if [ $(which man) ] +if command -v man >/dev/null then man live-build else -- cgit v1.2.3