screen -ls always seems to exit 1, even if i get

the output I need

Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
Dustin Kirkland 2009-05-14 13:48:12 -05:00
commit b421ac3fd5

View file

@ -26,7 +26,7 @@
[ -x /bin/bash ] && /bin/true | /bin/bash -i -s [ -x /bin/bash ] && /bin/true | /bin/bash -i -s
arg="-xRR" arg="-xRR"
out=`screen -ls 2>/dev/null` out=`screen -ls 2>/dev/null` || true
if echo "$out" | grep -qsi "^No Sockets found in "; then if echo "$out" | grep -qsi "^No Sockets found in "; then
# Start new session # Start new session
arg="" arg=""