Merge "clear screen rc file every time you run stack.sh"

This commit is contained in:
Jenkins 2012-10-29 12:46:34 +00:00 committed by Gerrit Code Review
commit 4fc0fd2bc8

View File

@ -1039,6 +1039,11 @@ if [ -z "$SCREEN_HARDSTATUS" ]; then
SCREEN_HARDSTATUS='%{= .} %-Lw%{= .}%> %n%f %t*%{= .}%+Lw%< %-=%{g}(%{d}%H/%l%{g})'
fi
# Clear screen rc file
SCREENRC=$TOP_DIR/$SCREEN_NAME-screenrc
if [[ -e $SCREENRC ]]; then
echo -n > $SCREENRC
fi
# Create a new named screen to run processes in
screen -d -m -S $SCREEN_NAME -t shell -s /bin/bash
sleep 1