Check if ruby is in $PATH.
This commit is contained in:
parent
4ce58ed21a
commit
f27c916edb
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue