aboutsummaryrefslogtreecommitdiff
path: root/wscreen
diff options
context:
space:
mode:
Diffstat (limited to 'wscreen')
-rwxr-xr-xwscreen2
1 files changed, 1 insertions, 1 deletions
diff --git a/wscreen b/wscreen
index 297ab15..2d9c016 100755
--- a/wscreen
+++ b/wscreen
@@ -16,7 +16,7 @@ screen -wipe &> /dev/null
# Session selection.
if [ ! -z "$1" ]; then
- if screen -ls $1 | grep -q "There is a screen on"; then
+ if screen -ls $1 | grep -qP "\.$1\t"; then
#echo "There's already a screen called $1"
#exit 1
screen -x $1