For lh_local, checking first for helpers in LH_BASE.
lh_local sets PATH and LH_BASE. However the live-helper wrapper script looks for helper script in the system path (/usr/share/live-helper/helpers) before looking for them in the PATH. This patch thus instructs lh to first adds test under LH_BASE, if set.
This commit is contained in:
parent
aaca8c1f1a
commit
7f1599d218
|
@ -34,7 +34,10 @@ case "${1}" in
|
||||||
COMMAND="${1}"
|
COMMAND="${1}"
|
||||||
shift
|
shift
|
||||||
|
|
||||||
if [ -x /usr/share/live-helper/helpers/lh_${COMMAND} ]
|
if [ -x "${LH_BASE}/helpers/lh_${COMMAND}" ]
|
||||||
|
then
|
||||||
|
LH=1 exec "${LH_BASE}/helpers/lh_${COMMAND}" "${@}"
|
||||||
|
elif [ -x /usr/share/live-helper/helpers/lh_${COMMAND} ]
|
||||||
then
|
then
|
||||||
LH=1 exec /usr/share/live-helper/helpers/lh_"${COMMAND}" "${@}"
|
LH=1 exec /usr/share/live-helper/helpers/lh_"${COMMAND}" "${@}"
|
||||||
elif [ -x "$(which lh_${COMMAND} 2>/dev/null)" ]
|
elif [ -x "$(which lh_${COMMAND} 2>/dev/null)" ]
|
||||||
|
|
Loading…
Reference in New Issue