Commit Diff


commit - 2e2d9eae10b458e4448a344ffd7247901d5038f1
commit + a80d4dc95ad580aae711f5ef1a62552233d86a65
blob - 554395cf399205f3963b68598783b283c595bb46
blob + 96e7a876ed1b16b89e4146e352425db87a50ccfd
--- tpm
+++ tpm
@@ -228,9 +228,9 @@ set +u
 [ "${1}" != "insert" -a ! -d "${STORE_DIR}" ] && abort "Password directory does not exist."
 set -u
 
-if [ ! -z "$(which colortree)" ]; then
+if [ ! -z "$(which colortree 2> /dev/null)" ]; then
 	TREE=colortree
-elif [ ! -z "$(which tree)" ]; then
+elif [ ! -z "$(which tree 2> /dev/null)" ]; then
 	TREE=tree
 else
 	abort "tpm needs tree or colortree to run. Please install"