From 78ba29327db3c2c22002ace7053fd1bbdd9ad0e1 Mon Sep 17 00:00:00 2001 From: Didier Date: Thu, 27 Apr 2023 13:40:40 +0200 Subject: [PATCH] fix git fails --- install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 5deee22..41ba139 100755 --- a/install.sh +++ b/install.sh @@ -85,7 +85,10 @@ chown -R $SUDO_USER kvrocks #--------------------- # Pandora #--------------------- -su - $SUDO_USER -c "git clone https://github.com/pandora-analysis/pandora.git" +if [! -d "kvrocks" ]; + then + su - $SUDO_USER -c "git clone https://github.com/pandora-analysis/pandora.git" +fi # fix broken packages apt-get install --fix-broken -y