Replace SCREEN_LOGDIR with LOGDIR
SCREEN_LOGDIR already been deprecated. This patch move to use LOGDIR instead. Change-Id: Ie2323412708efd523d934690b5516d635b008fb2
This commit is contained in:
parent
e39e15a5df
commit
05ea6dfa54
@ -38,8 +38,8 @@ function err() {
|
|||||||
set +o xtrace
|
set +o xtrace
|
||||||
local msg="[ERROR] ${BASH_SOURCE[2]}:$1 $2"
|
local msg="[ERROR] ${BASH_SOURCE[2]}:$1 $2"
|
||||||
echo $msg 1>&2;
|
echo $msg 1>&2;
|
||||||
if [[ -n ${SCREEN_LOGDIR} ]]; then
|
if [[ -n ${LOGDIR} ]]; then
|
||||||
echo $msg >> "${SCREEN_LOGDIR}/error.log"
|
echo $msg >> "${LOGDIR}/error.log"
|
||||||
fi
|
fi
|
||||||
$errXTRACE
|
$errXTRACE
|
||||||
return $exitcode
|
return $exitcode
|
||||||
|
Loading…
Reference in New Issue
Block a user