]> arthur.barton.de Git - ConfigScripts.git/blobdiff - user/bash_logout
Use "type -t" to test for tools.
[ConfigScripts.git] / user / bash_logout
index 3b258553e95e4e63b6047906d12f15e9c43c2b81..c22c8f9ba5043838197fd4fafa9b196e8baab0f7 100644 (file)
@@ -16,7 +16,7 @@
 
 # Clean up SSH agents, if running and not using keychain(1)
 if [ $SSH_AGENT_PID ]; then
-       type keychain >/dev/null 2>&1 || eval `ssh-agent -k`
+       type -t keychain >/dev/null || eval `ssh-agent -k`
 fi
 
 # Clear the console if it is a local terminal