do not attach screen if -d option is set
This commit is contained in:
parent
79286bacb8
commit
7e514943f4
1 changed files with 8 additions and 0 deletions
|
@ -26,4 +26,12 @@ do
|
|||
screen -S $session -p $window -X title $server
|
||||
done
|
||||
|
||||
# do not attach screen if "-d" option is set
|
||||
if [ ! -z "$1" ]
|
||||
then
|
||||
if [ $1 == "-d" ]
|
||||
then
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
screen -r $session -p 0
|
||||
|
|
Loading…
Reference in a new issue