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
1 changed files with 8 additions and 0 deletions

View File

@ -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