#!/usr/bin/env bash set -euo pipefail # Pull repos in a defined order to prepare images for docker-compose BASE_DIR="/home/debian/code/4NK_dev/4NK_node" ORDER=( modules/tor modules/bitcoin-core modules/blindbit-oracle modules/sp-client modules/sdk_common modules/sdk_client modules/sdk_relay modules/sdk_storage modules/sdk_signer_client modules/sdk_signer modules/ihm_client modules/4NK_template projects/lecoffre-back-mini projects/lecoffre-front ) echo "=== Pull order start ===" for path in "${ORDER[@]}"; do full_path="$BASE_DIR/$path" if [ -d "$full_path" ]; then echo "-> pulling $path" (cd "$full_path" && git fetch --all --prune || true && git reset --hard origin/docker-support-v2 || true) else echo "-- skipping missing path $path" fi done echo "=== Pull order finished ==="