βœ… rc-verify.sh Reference

πŸ”’ rc-verify.sh

Version: v0.2.2 Script Path: bones/scripts/rc-verify.sh

Purpose

CLI Interface

rc-verify.sh [--dry-run] [--verbose] [--help] [--warn-only] [--update] [--manifest-path PATH]

Supported flags:

Workflow Steps

  1. Setup & Configuration

    • Locate asset-manifest.yaml and ensure logs/ directory exists.
    • Parse CLI flags for custom behavior.
  2. Load Manifest

    • Use yq to read each asset path and sha256 value from the manifest.
  3. Verification Loop For each manifest entry, recompute SHA256, compare, log OK or ERROR; on mismatches respect --warn-only.

    Skip any entries where the path is empty or malformed.

  4. Manifest Update (optional)

    • If --update is used, replace expected SHA values in the manifest with computed ones.
  5. Completion & Exit

    • If any mismatches occurred and not in --warn-only, exit code 1.
    • On success or --warn-only, exit code 0.

Exit Codes

Examples

# Standard verify
./bones/scripts/rc-verify.sh

# Preview without writing
./bones/scripts/rc-verify.sh --dry-run --verbose

# Warn-only mode
./bones/scripts/rc-verify.sh --warn-only

# Update manifest
./bones/scripts/rc-verify.sh --update

# Custom manifest
./bones/scripts/rc-verify.sh --manifest-path config/custom-manifest.yaml

Author:

Project: Rotkeeper

Version: 0.2.3-pre

License: