From aa4723a2d343dacb6c511fa1733450a138ff36a1 Mon Sep 17 00:00:00 2001 From: Didier Barzin Date: Tue, 11 Feb 2025 20:38:36 +0100 Subject: [PATCH] Update install.sh --- install.sh | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/install.sh b/install.sh index 6d5cc4c..978fbe3 100755 --- a/install.sh +++ b/install.sh @@ -46,12 +46,12 @@ su - $SUDO_USER -c "poetry --version" #--------------------- apt install -y build-essential tcl pkg-config -if [ ! -d "valkey" ]; - then - git clone https://github.com/valkey-io/valkey.git - cd valkey - git checkout 8.0 - make -j 4 +if [ ! -d "valkey" ]; then + git clone https://github.com/valkey-io/valkey.git + cd valkey + git checkout 8.0 + make -j 4 + cd .. fi # Optionally, you can run the tests: # make test @@ -64,25 +64,22 @@ chown -R $SUDO_USER valkey apt-get update apt install -y git gcc g++ make cmake autoconf automake libtool python3 libssl-dev -if [ ! -d "kvrocks" ]; - then - git clone --recursive https://github.com/apache/incubator-kvrocks.git kvrocks - cd kvrocks - git checkout 2.10 - ./x.py build +if [ ! -d "kvrocks" ]; then + git clone --recursive https://github.com/apache/incubator-kvrocks.git kvrocks + cd kvrocks + git checkout 2.10 + ./x.py build + cd .. fi -cd .. - chown -R $SUDO_USER kvrocks #--------------------- # Pandora #--------------------- -if [ ! -d "pandora" ]; - then - git clone https://github.com/pandora-analysis/pandora.git - chown -R $SUDO_USER pandora +if [ ! -d "pandora" ]; then + git clone https://github.com/pandora-analysis/pandora.git + chown -R $SUDO_USER pandora fi # fix broken packages