diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/build/lb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/build/lb b/scripts/build/lb index 58c1d12d5..4bb76cb56 100755 --- a/scripts/build/lb +++ b/scripts/build/lb @@ -44,16 +44,19 @@ case "${1}" in if [ -x "${LB_BASE}/scripts/build/${COMMAND}" ] then - LB=1 exec "${LB_BASE}/scripts/build/${COMMAND}" "${@}" + SCRIPT="${LB_BASE}/scripts/build/${COMMAND}" elif [ -x /usr/share/live/build/scripts/build/${COMMAND} ] then - LB=1 exec /usr/share/live/build/scripts/build/"${COMMAND}" "${@}" + SCRIPT=/usr/share/live/build/scripts/build/"${COMMAND}" elif [ -x "$(which ${COMMAND} 2>/dev/null)" ] then - LB=1 exec "${COMMAND}" "${@}" + SCRIPT="${COMMAND}" else Echo_error "no such script" exit 1 fi + + Echo "[%s] %s" "$(date +'%F %T')" "${COMMAND} ${*}" + LB=1 exec "${SCRIPT}" "${@}" ;; esac |