diff options
author | Daniel Baumann <daniel@debian.org> | 2008-11-02 11:29:09 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:03:44 +0100 |
commit | 8ff4391fd7f2a89c3ae39cec097a28dc6b2e768b (patch) | |
tree | 9f337f835b67c39bf2aaf8c8670e58b4b3231867 /helpers | |
parent | c225229f2910ee138873ecb05b43e8ec3021918d (diff) | |
download | live-build-8ff4391fd7f2a89c3ae39cec097a28dc6b2e768b.zip live-build-8ff4391fd7f2a89c3ae39cec097a28dc6b2e768b.tar.gz |
Cleaning up code of 'lh' short helper.
Diffstat (limited to 'helpers')
-rwxr-xr-x | helpers/lh | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 |