Moves shared env.sh sourcing + vault-bot token override into vault/vault-env.sh so the three vault sub-scripts no longer share a duplicate 5-line block. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
9 lines
383 B
Bash
9 lines
383 B
Bash
#!/usr/bin/env bash
|
|
# vault-env.sh — Shared vault environment: loads lib/env.sh and activates
|
|
# vault-bot's Forgejo identity (#747).
|
|
# Source this instead of lib/env.sh in vault scripts.
|
|
|
|
# shellcheck source=../lib/env.sh
|
|
source "$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)/lib/env.sh"
|
|
# Use vault-bot's own Forgejo identity
|
|
FORGE_TOKEN="${FORGE_VAULT_TOKEN:-${FORGE_TOKEN}}"
|