[SCM] Debian Live build scripts branch, master, updated. 1.0.1-1-76-g4de79b6
Daniel Baumann
daniel at debian.org
Mon Nov 3 11:16:02 UTC 2008
The following commit has been merged in the master branch:
commit 435d16a4456ab0c6c0c79e66246fe70bd9f7a438
Author: Daniel Baumann <daniel at debian.org>
Date: Sun Nov 2 11:29:09 2008 +0100
Cleaning up code of 'lh' short helper.
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
--
Debian Live build scripts
More information about the debian-live-changes
mailing list