From efb8ab519faf721dcb80f59556ca45f729d9f889 Mon Sep 17 00:00:00 2001 From: GONG Jie Date: Sun, 31 Dec 2017 23:59:59 +0000 Subject: [PATCH] Remove trailing spaces in file xCAT-client/bin/tcons --- xCAT-client/bin/tcons | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/xCAT-client/bin/tcons b/xCAT-client/bin/tcons index cc0af755d..2cf994f9b 100755 --- a/xCAT-client/bin/tcons +++ b/xCAT-client/bin/tcons @@ -1,18 +1,18 @@ #!/bin/sh -f=1 -p=0 +f=1 +p=0 for i in `nodels "$1"`; do - if [ "$f" = 1 ]; then - f=0 + if [ "$f" = 1 ]; then + f=0 qdate=$((`date +%s`+5)) - tmux new-session -d -s tcons.$$ -x 800 -y 800 "rcons $i;if [ \`date +%s\` -lt $qdate ]; then echo Press enter to close; read qdate; fi" - continue - fi - tmux select-pane -t $p - p=$((p+1)) + tmux new-session -d -s tcons.$$ -x 800 -y 800 "rcons $i;if [ \`date +%s\` -lt $qdate ]; then echo Press enter to close; read qdate; fi" + continue + fi + tmux select-pane -t $p + p=$((p+1)) qdate=$((`date +%s`+5)) tmux split -h "rcons $i;if [ \`date +%s\` -lt $qdate ]; then echo Press enter to close; read qdate; fi" tmux select-layout tiled -done +done tmux select-pane -t 0 -tmux attach -t tcons.$$ +tmux attach -t tcons.$$