Try /usr/sbin before /sbin in have().

The former tends to have more executables so this should save some
stat() calls in some setups.
This commit is contained in:
Ville Skyttä 2011-04-05 22:44:04 +03:00
parent 4e4e300ef1
commit d2707cf368

View File

@ -171,7 +171,7 @@ have()
unset -v have
# Completions for system administrator commands are installed as well in
# case completion is attempted via `sudo command ...'.
PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin type $1 &>/dev/null &&
PATH=$PATH:/usr/sbin:/sbin:/usr/local/sbin type $1 &>/dev/null &&
have="yes"
}