Subject: Addjusting lh helper to be called from lh_local.

From: Daniel Baumann <[email-masked]>
Date: Sat, 22 Dec 2007 09:36:54 +0100

---
 helpers/lh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/helpers/lh b/helpers/lh
index 7bd4b00..5d48610 100755
--- a/helpers/lh
+++ b/helpers/lh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -x
 
 # live-helper(1) - utility to build Debian Live systems
 # Copyright (C) 2006-2007 Daniel Baumann <[email-masked]>
@@ -49,9 +49,9 @@ case "${1}" in
 		;;
 
 	*)
-		if [ -x /usr/bin/lh_"${1}" ]
+		if [ ! -z "$(whereis lh_${1})" ]
 		then
-			exec /usr/bin/lh_"${1}" $(echo ${@} | sed -e "s/${1}//")
+			exec lh_"${1}" $(echo ${@} | sed -e "s/${1}//")
 		else
 			Echo_error "no such helper"
 			exit 1
-- 
cgit v1.0