@@ -1,7 +1,10 @@
#!/bin/sh
-if echo $@|grep -- "--language-force=php" >/dev/null 2>&1 ; then
- ctags-exuberant $(echo $@ | sed 's/--language-force=php//' | sed 's/--php-types=[^ ]*//')
-else
- ctags-exuberant $@
+if which ctags-exuberant &>/dev/null; then
+ if echo $@|grep -- "--language-force=php" >/dev/null 2>&1 ; then
+ ctags-exuberant $(echo $@ | sed 's/--language-force=php//' | sed 's/--php-types=[^ ]*//')
+ else
+ ctags-exuberant $@
+ fi
fi
+