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

View File

@ -38,8 +38,8 @@ function err() {
set +o xtrace
local msg="[ERROR] ${BASH_SOURCE[2]}:$1 $2"
echo $msg 1>&2;
if [[ -n ${SCREEN_LOGDIR} ]]; then
echo $msg >> "${SCREEN_LOGDIR}/error.log"
if [[ -n ${LOGDIR} ]]; then
echo $msg >> "${LOGDIR}/error.log"
fi
$errXTRACE
return $exitcode