From 5c0391d6cc052307bb7c4470512951c1741f647a Mon Sep 17 00:00:00 2001 From: Andrei Tenescu Date: Tue, 25 Aug 2020 14:42:51 +0300 Subject: [PATCH] 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. --- install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install.sh b/install.sh index 61ddc56..3800fad 100755 --- a/install.sh +++ b/install.sh @@ -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