diff options
Diffstat (limited to 'Functions/VCS_Info/VCS_INFO_check_com')
-rw-r--r-- | Functions/VCS_Info/VCS_INFO_check_com | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Functions/VCS_Info/VCS_INFO_check_com b/Functions/VCS_Info/VCS_INFO_check_com index 6d65360d5..d9f7a1330 100644 --- a/Functions/VCS_Info/VCS_INFO_check_com +++ b/Functions/VCS_Info/VCS_INFO_check_com @@ -4,5 +4,12 @@ setopt localoptions NO_shwordsplit -(( ${+commands[$1]} )) && [[ -x ${commands[$1]} ]] && return 0 +case $1 in + (/*) + [[ -x $1 ]] && return 0 + ;; + (*) + (( ${+commands[$1]} )) && [[ -x ${commands[$1]} ]] && return 0 +esac + return 1 |