From: Rob Browning Date: Tue, 5 Nov 2013 22:39:31 +0000 (-0600) Subject: Use "type -p" instead of "which" in test.sh. X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=1932d38fee5b96004b30c475d8d7daea708133a1;p=packages%2Fb%2Fbup.git Use "type -p" instead of "which" in test.sh. Which isn't portable (if I recall correctly), and we know we're in Bash. Signed-off-by: Rob Browning --- diff --git a/t/test.sh b/t/test.sh index 98b3ef3..514ef58 100755 --- a/t/test.sh +++ b/t/test.sh @@ -618,7 +618,7 @@ WVPASSEQ "$(bup ls buptest/latest/)" "a/ c/" -if [ "$(which rdiff-backup)" != "" ]; then +if [ "$(type -p rdiff-backup)" != "" ]; then WVSTART "import-rdiff-backup" D=rdiff-backup.tmp export BUP_DIR="$TOP/$D/.bup"