From 0cafa28b38fc90ac744337e952a51d599aa486fc Mon Sep 17 00:00:00 2001 From: Matthias Gatto Date: Thu, 16 May 2024 23:13:10 +0200 Subject: [PATCH] update submodules to use last ricochet-2 Signed-off-by: Matthias Gatto --- local-tests.sh | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/local-tests.sh b/local-tests.sh index 471b7c3..69f0557 100755 --- a/local-tests.sh +++ b/local-tests.sh @@ -5,19 +5,23 @@ export OSC_ACCESS_KEY=11112211111110000000 export OSC_ENDPOINT_API=http://127.0.0.1:3000 -if [ ! -d "osc-ricochet-2" ]; then - git clone https://github.com/outscale-mgo/osc-ricochet-2 -fi +if [ "$#" -eq 0 ]; then + + if [ ! -d "osc-ricochet-2" ]; then + git clone https://github.com/outscale/osc-ricochet-2 + fi -cd osc-ricochet-2 -pkill ricochet + cd osc-ricochet-2 + pkill ricochet -cargo build -cargo run -- ./ricochet.json > /dev/null & + cargo build + cargo run -- ./ricochet.json > /dev/null & -sleep 5 + sleep 5 -cd .. + cd .. + +fi set -e