about summary refs log tree commit diff
path: root/Functions
diff options
context:
space:
mode:
authorFrank Terbeck <bewater@users.sourceforge.net>2012-01-19 16:57:40 +0000
committerFrank Terbeck <bewater@users.sourceforge.net>2012-01-19 16:57:40 +0000
commit0d15215d86737a93a7ee284bc8f25b19ecabbe7f (patch)
tree8a43377b8e58aa5b25ea0238ee226d8d10c1c99b /Functions
parent69a6df462c6231041979fea56e74ee8264c3f798 (diff)
downloadzsh-0d15215d86737a93a7ee284bc8f25b19ecabbe7f.tar.gz
zsh-0d15215d86737a93a7ee284bc8f25b19ecabbe7f.tar.xz
zsh-0d15215d86737a93a7ee284bc8f25b19ecabbe7f.zip
30114: VCS_INFO_check_com: Remove a superfluous stat()
Diffstat (limited to 'Functions')
-rw-r--r--Functions/VCS_Info/VCS_INFO_check_com2
1 files changed, 1 insertions, 1 deletions
diff --git a/Functions/VCS_Info/VCS_INFO_check_com b/Functions/VCS_Info/VCS_INFO_check_com
index d9f7a1330..1b86593a1 100644
--- a/Functions/VCS_Info/VCS_INFO_check_com
+++ b/Functions/VCS_Info/VCS_INFO_check_com
@@ -9,7 +9,7 @@ case $1 in
         [[ -x $1 ]] && return 0
         ;;
     (*)
-        (( ${+commands[$1]} )) && [[ -x ${commands[$1]} ]] && return 0
+        (( ${+commands[$1]} )) && return 0
 esac
 
 return 1