Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .claude/cloud-bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,14 @@ repo_root="${CLAUDE_PROJECT_DIR:-$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.."
cd -- "$repo_root"

# Environment-snapshot inventory line: the shared environment's setup script
# writes its version + build time to this stamp as its last action. Logging it
# from every session makes "which snapshot is this account booting" visible
# without a per-account audit.
# writes its version + build time to this stamp as its last action, falling
# back to /tmp when /opt is unwritable at cache build. Logging it from every
# session makes "which snapshot is this account booting" visible without a
# per-account audit.
if [[ -f /opt/melodic-env-setup.done ]]; then
echo "cloud-bootstrap: env snapshot $(cat /opt/melodic-env-setup.done)" >&2
elif [[ -f /tmp/melodic-env-setup.done ]]; then
echo "cloud-bootstrap: env snapshot $(cat /tmp/melodic-env-setup.done) (fallback stamp; /opt was unwritable at cache build)" >&2
else
echo "cloud-bootstrap: no env setup stamp (unmanaged environment or interrupted cache build)" >&2
fi
Expand Down
Loading