]> arthur.barton.de Git - bup.git/commitdiff
Use "type -p" instead of "which" in test.sh.
authorRob Browning <rlb@defaultvalue.org>
Tue, 5 Nov 2013 22:39:31 +0000 (16:39 -0600)
committerRob Browning <rlb@defaultvalue.org>
Tue, 5 Nov 2013 22:52:42 +0000 (16:52 -0600)
Which isn't portable (if I recall correctly), and we know we're in
Bash.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
t/test.sh

index 98b3ef3124780eb41e7ca0affd66afa0a9af514d..514ef58ab4bba3ebf13997d5791cfd506f76c073 100755 (executable)
--- 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"