From 44b5736d23aa544ea4ac1c9feadd4724b18102be Mon Sep 17 00:00:00 2001 From: Chmouel Boudjnah Date: Tue, 7 Feb 2012 18:13:44 +0100 Subject: [PATCH] Check if screen is installed before using it. Fixes 928377 Change-Id: Ie34860e6d08a457dd52a6c3106d63b54c284f6f3 --- stack.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stack.sh b/stack.sh index c40b24c996..093d5d83b3 100755 --- a/stack.sh +++ b/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."