1
0
Fork 0
mirror of https://github.com/dbarzin/pandora-box.git synced 2025-07-19 05:19:40 +02:00

Fix folder exists

This commit is contained in:
Didier Barzin 2025-02-11 20:24:35 +01:00 committed by GitHub
parent 66460a0982
commit 897d2d93c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -46,10 +46,8 @@ su - $SUDO_USER -c "poetry --version"
#--------------------- #---------------------
apt install -y build-essential tcl pkg-config apt install -y build-essential tcl pkg-config
if [ -d "valkey" ]; if [ ! -d "valkey" ];
then then
cd valkey
else
git clone https://github.com/valkey-io/valkey.git git clone https://github.com/valkey-io/valkey.git
cd valkey cd valkey
git checkout 8.0 git checkout 8.0
@ -57,7 +55,6 @@ if [ -d "valkey" ];
fi fi
# Optionally, you can run the tests: # Optionally, you can run the tests:
# make test # make test
cd ..
chown -R $SUDO_USER valkey chown -R $SUDO_USER valkey
@ -67,10 +64,8 @@ chown -R $SUDO_USER valkey
apt-get update apt-get update
apt install -y git gcc g++ make cmake autoconf automake libtool python3 libssl-dev apt install -y git gcc g++ make cmake autoconf automake libtool python3 libssl-dev
if [ -d "kvrocks" ]; if [ ! -d "kvrocks" ];
then then
cd kvrocks
else
git clone --recursive https://github.com/apache/incubator-kvrocks.git kvrocks git clone --recursive https://github.com/apache/incubator-kvrocks.git kvrocks
cd kvrocks cd kvrocks
git checkout 2.10 git checkout 2.10