diff --git a/bootstrap-neopig.sh b/bootstrap-neopig.sh index 72aafa5..63cce8c 100644 --- a/bootstrap-neopig.sh +++ b/bootstrap-neopig.sh @@ -1,9 +1,15 @@ #!/bin/bash set -e -# Clone neopig from git -git clone https://git.unturf.com/engineering/unturf/pig.py.git neopig -cd neopig +# Clone or update neopig from git (idempotent) +if [ -d "neopig" ]; then + cd neopig + git fetch origin + git reset --hard origin/main +else + git clone https://git.unturf.com/engineering/unturf/pig.py.git neopig + cd neopig +fi # Create virtualenv and install dependencies python3 -m venv .venv