summaryrefslogtreecommitdiff
path: root/helpers/lh
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/lh')
-rwxr-xr-xhelpers/lh7
1 files changed, 5 insertions, 2 deletions
diff --git a/helpers/lh b/helpers/lh
index 5f2b538..5d3e59c 100755
--- a/helpers/lh
+++ b/helpers/lh
@@ -48,9 +48,12 @@ case "${1}" in
;;
*)
- if [ ! -z "$(whereis lh_${1})" ]
+ COMMAND="${1}"
+ shift
+
+ if [ -x "$(which lh_${COMMAND} 2>/dev/null)" ]
then
- exec lh_"${1}" $(echo ${@} | sed -e "s|${1}||")
+ exec lh_"${COMMAND}" ${@}
else
Echo_error "no such helper"
exit 1