Update install.sh

Check if git is installed. Without git, the installer fails with the misleading error:

Failed to enable unit: Unit file ngrok.service does not exist.
Failed to start ngrok.service: Unit ngrok.service not found.
This commit is contained in:
Andrei Tenescu 2020-08-25 14:42:51 +03:00 committed by GitHub
parent c7317290c9
commit 5c0391d6cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,6 +5,11 @@ if [ ! $(which wget) ]; then
exit 1
fi
if [ ! $(which git) ]; then
echo 'Please install git package'
exit 1
fi
if [ ! $(which unzip) ]; then
echo 'Please install zip package'
exit 1