#!/bin/sh
# Clone/fetch jepsen fork and branch $1
mkdir -p /jepsen
cd /jepsen
branch="${1:-dev}"
if ! git clone -b $branch https://github.com/bogdando/jepsen
then
  cd ./jepsen
  git remote update
  git pull --ff-only
  cd -
fi
mkdir -p logs
sync
exit 0

#!/bin/sh
# Clone/fetch jepsen fork and branch $1
rm -rf /jepsen
mkdir -p /jepsen
cd /jepsen
branch="${1:-dev}"
if ! git clone -b $branch https://github.com/bogdando/jepsen
then
  cd ./jepsen
  git remote update
  git pull --ff-only
  cd -
fi
mkdir -p logs
sync
exit 0

Fix jepsen repo config idempotency
Fix jepsen repo config idempotency

Signed-off-by: Bogdan Dobrelya <62b3a3e71fe69d786a0eb2bf561b6ce08e31d2cc@mail.ru>
