]> arthur.barton.de Git - ConfigScripts.git/blobdiff - sys/profile
Use "type" to test for tools
[ConfigScripts.git] / sys / profile
index fad0145bfae2922d08868b42ca9c87fd75b1690c..191cf2964b694d49dcd345e44b975b7ffe758666 100644 (file)
@@ -140,8 +140,7 @@ fi
 [ "$PS1" ] || return
 
 # validate terminal definition
-type -p tset >/dev/null 2>&1
-[ $? -eq 0 ] && eval `tset -s -Q`
+type tset >/dev/null 2>&1 && eval `tset -s -Q`
 
 # generic shell prompt
 [ "$LOGNAME" = "root" ] \
@@ -186,8 +185,7 @@ fi
 # Check filesystem quotas
 mount 2>/dev/null | grep quota >/dev/null 2>&1
 if [ $? -eq 0 ]; then
-       which quota >/dev/null 2>&1
-       [ $? -eq 0 ] && quota -q
+       type quota >/dev/null 2>&1 && quota -q
 fi
 
 # -eof-