Unverified Commit a1866dcd authored by Aral Balkan's avatar Aral Balkan
Browse files

Add check for missing libssl-dev dependency (on Linux)

This check should also catch the eventuality of the missing Nodegit dependency on macOS.
parent f9f9602c
......@@ -168,6 +168,16 @@ ensureCoffeeScriptExists(){
fi
}
# Nodegit has a dependency (on Linux, at least) on sshd
# (On Linux, this is installed as part of libssl-dev)
ensureSSHDExists(){
if hash sshd 2>/dev/null; then
echo -e "sshd installed (Nodegit dependency should be met.)"
else
echo -e "\nError: Nodegit requires libssl-dev (on Linux) or equivalent. Please install that for your system and re-run the Builder installer."
exit 1
fi
}
ensureNodemonExists(){
if hash nodemon 2>/dev/null; then
......@@ -400,6 +410,7 @@ goodbye(){
ensureDependenciesExist(){
ensureSSHDExists
ensureCoffeeScriptExists
ensureNodemonExists
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment