Files
vm-skills/btc-anchor/scripts/rollback/undo_last_run.sh
Vault Sovereign eac77ef7b4 Initial commit: VaultMesh Skills collection
Collection of operational skills for VaultMesh infrastructure including:
- backup-sovereign: Backup and recovery operations
- btc-anchor: Bitcoin anchoring
- cloudflare-tunnel-manager: Cloudflare tunnel management
- container-registry: Container registry operations
- disaster-recovery: Disaster recovery procedures
- dns-sovereign: DNS management
- eth-anchor: Ethereum anchoring
- gitea-bootstrap: Gitea setup and configuration
- hetzner-bootstrap: Hetzner server provisioning
- merkle-forest: Merkle tree operations
- node-hardening: Node security hardening
- operator-bootstrap: Operator initialization
- proof-verifier: Cryptographic proof verification
- rfc3161-anchor: RFC3161 timestamping
- secrets-vault: Secrets management

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-27 00:25:00 +00:00

20 lines
608 B
Bash

#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
SKILL_ROOT="$(dirname "$(dirname "$SCRIPT_DIR")")"
source "$SKILL_ROOT/scripts/_common.sh"
main() {
confirm_gate
if [[ ! -f "$SKILL_ROOT/outputs/last_run_dir.txt" ]]; then
log_warn "No last run; nothing to undo."
exit 0
fi
run_dir="$(cat "$SKILL_ROOT/outputs/last_run_dir.txt")"
log_warn "Removing last run artifacts (cannot undo broadcast tx): $run_dir"
rm -rf "$run_dir" || true
rm -f "$SKILL_ROOT/outputs/last_run_dir.txt" || true
log_info "Local rollback complete (chain tx remains)."
}
main "$@"