From f27c916edb4212e0245d65c37c2d7e600b065756 Mon Sep 17 00:00:00 2001 From: Ossi Herrala Date: Tue, 5 Jul 2011 09:37:42 +0000 Subject: [PATCH] Check if ruby is in $PATH. --- puppet/bootstrap-server.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/puppet/bootstrap-server.sh b/puppet/bootstrap-server.sh index 87b97bb..3bbce12 100755 --- a/puppet/bootstrap-server.sh +++ b/puppet/bootstrap-server.sh @@ -6,6 +6,12 @@ if [ $? -ne 0 ]; then exit 1 fi +which ruby > /dev/null 2>&1 +if [ $? -ne 0 ]; then + echo "error, ruby binary not in path" 1>&2 + exit 1 +fi + which puppet > /dev/null 2>&1 if [ $? -ne 0 ]; then echo "error, puppet binary not in path" 1>&2