do not attach screen if -d option is set

This commit is contained in:
n 2015-09-10 22:04:22 +02:00
parent 79286bacb8
commit 7e514943f4

View file

@ -26,4 +26,12 @@ do
screen -S $session -p $window -X title $server screen -S $session -p $window -X title $server
done 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 screen -r $session -p 0