Check if screen is installed before using it.

Fixes 928377

Change-Id: Ie34860e6d08a457dd52a6c3106d63b54c284f6f3
This commit is contained in:
Chmouel Boudjnah 2012-02-07 18:13:44 +01:00 committed by Vishvananda Ishaya
parent af6d47cb3d
commit 44b5736d23

View File

@ -90,7 +90,7 @@ source ./stackrc
DEST=${DEST:-/opt/stack} DEST=${DEST:-/opt/stack}
# Check to see if we are already running a stack.sh # 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 "You are already running a stack.sh session."
echo "To rejoin this session type 'screen -x stack'." echo "To rejoin this session type 'screen -x stack'."
echo "To destroy this session, kill the running screen." echo "To destroy this session, kill the running screen."