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:
ricolin 2017-09-25 16:04:02 +08:00
parent e39e15a5df
commit 05ea6dfa54
1 changed files with 2 additions and 2 deletions

View File

@ -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