Calling local live-build embedded in config directly rather than to adjust path.
This commit is contained in:
parent
365e4c81c5
commit
d0561821e4
4
bin/lb
4
bin/lb
|
@ -57,6 +57,10 @@ case "${1}" in
|
|||
then
|
||||
# User has live-build copied locally in the system
|
||||
SCRIPT="${LIVE_BUILD}/scripts/build/${COMMAND}"
|
||||
elif [ -x "local/live-build/scripts/build/${COMMAND}" ]
|
||||
then
|
||||
# User has live-build embedded in the config
|
||||
SCRIPT="local/live-build/scripts/build/${COMMAND}"
|
||||
elif [ -x /usr/lib/live/build/${COMMAND} ]
|
||||
then
|
||||
# User has live-build installed in the system
|
||||
|
|
|
@ -15,8 +15,7 @@ Set_defaults ()
|
|||
if [ -e local/live-build ]
|
||||
then
|
||||
LIVE_BUILD="${LIVE_BUILD:-${PWD}/local/live-build}"
|
||||
PATH="${PWD}/local/live-build/scripts/build:${PATH}"
|
||||
export LIVE_BUILD PATH
|
||||
export LIVE_BUILD
|
||||
fi
|
||||
|
||||
# Setting system type
|
||||
|
|
|
@ -3,8 +3,7 @@
|
|||
if [ -e local/live-build ]
|
||||
then
|
||||
LIVE_BUILD="${LIVE_BUILD:-${PWD}/local/live-build}"
|
||||
PATH="${PWD}/local/live-build/scripts/build:${PATH}"
|
||||
export LIVE_BUILD PATH
|
||||
export LIVE_BUILD
|
||||
fi
|
||||
|
||||
# Source global functions
|
||||
|
|
Loading…
Reference in New Issue