Merge "Make rejoin-stack.sh resume file logging if enabled"

This commit is contained in:
Jenkins 2013-12-17 00:40:02 +00:00 committed by Gerrit Code Review
commit 6ef165cd7a

View File

@ -1159,6 +1159,11 @@ function screen_rc {
NL=`echo -ne '\015'` NL=`echo -ne '\015'`
echo "screen -t $1 bash" >> $SCREENRC echo "screen -t $1 bash" >> $SCREENRC
echo "stuff \"$2$NL\"" >> $SCREENRC echo "stuff \"$2$NL\"" >> $SCREENRC
if [[ -n ${SCREEN_LOGDIR} ]]; then
echo "logfile ${SCREEN_LOGDIR}/screen-${1}.${CURRENT_LOG_TIME}.log" >>$SCREENRC
echo "log on" >>$SCREENRC
fi
fi fi
} }