[BASH] separated -wipe from -ls for run engine

This commit is contained in:
Yehonal
2016-08-30 13:10:34 +02:00
parent b03b420813
commit 2cf4e06e01

View File

@@ -1,6 +1,8 @@
#!/bin/bash
function checkStatus() {
# wipe do : destroy old screens + ls
screen -wipe
if screen -ls $1 | grep -q "No Sockets found"
then
return 0