mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
Change check for git
This commit is contained in:
parent
f77e8b4260
commit
0f05add6e5
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user