File size: 424 Bytes
ab1db83
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env bash
# Run at HF Spaces build time (or locally before first run) to pull upstream code.
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
mkdir -p "${ROOT}/repos"
if [ ! -d "${ROOT}/repos/NV-Generate-CTMR" ]; then
  git clone --depth 1 https://github.com/NVIDIA-Medtech/NV-Generate-CTMR.git "${ROOT}/repos/NV-Generate-CTMR"
fi
echo "Upstream repo ready at ${ROOT}/repos/NV-Generate-CTMR"