Better to use $+commands here.

This commit is contained in:
Simon Gomizelj 2011-11-29 05:31:59 -05:00
commit 6262677a96

View file

@ -1,4 +1,4 @@
if [[ -x /usr/bin/pkgfile ]]; then
if (( $+commands[pkgfile] )); then
command_not_found_handler() {
local pkg p
local pid ppid pgrp session tty_nr tpgid