From 0f05add6e54b91787bf0706eafdb7907a1f53ce3 Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Sat, 28 Jan 2017 21:14:28 +0100 Subject: [PATCH] Change check for git --- static/collabora.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static/collabora.sh b/static/collabora.sh index e077fc9e..bc6f72a1 100644 --- a/static/collabora.sh +++ b/static/collabora.sh @@ -84,7 +84,10 @@ else apt install docker.io -y fi -if [ $(dpkg-query -W -f='${Status}' git 2>/dev/null | grep -c "ok installed") -eq 1 ] +# Check if Git is installed + git --version 2>&1 >/dev/null + GIT_IS_AVAILABLE=$? +if [ $GIT_IS_AVAILABLE -eq 0 ] then sleep 1 else