Check if screen is installed before using it.
Fixes 928377 Change-Id: Ie34860e6d08a457dd52a6c3106d63b54c284f6f3
This commit is contained in:
parent
af6d47cb3d
commit
44b5736d23
2
stack.sh
2
stack.sh
@ -90,7 +90,7 @@ source ./stackrc
|
||||
DEST=${DEST:-/opt/stack}
|
||||
|
||||
# Check to see if we are already running a stack.sh
|
||||
if screen -ls | egrep -q "[0-9].stack"; then
|
||||
if type -p screen >/dev/null && screen -ls | egrep -q "[0-9].stack"; then
|
||||
echo "You are already running a stack.sh session."
|
||||
echo "To rejoin this session type 'screen -x stack'."
|
||||
echo "To destroy this session, kill the running screen."
|
||||
|
Loading…
Reference in New Issue
Block a user