aboutsummaryrefslogtreecommitdiff
path: root/scripts/setup.sh
blob: fbaf39140c5219e33ee73fea7907d4ab1194e024 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash
set -e
cd "$(dirname "$0")/.."

if git submodule update --init --recursive 2>/dev/null && [ -d private/contexts ]; then
    echo "private content available: using real persona and contexts"
else
    echo "private content not accessible: generating placeholders"
    mkdir -p private/contexts
    # create dummy persona file
    touch private/CLAUDE.md
    # contexts/ stays empty; directory just needs to exist for the mount
fi

echo "setup complete. run 'docker compose -f docker/compose.yml build' next."