40 lines
763 B
Bash
Executable File
40 lines
763 B
Bash
Executable File
#!/bin/bash
|
|
# Verify the artifact files exist and match
|
|
cd /root/.hermes/wizard-outputs/spark
|
|
|
|
echo "=== Artifact Verification ==="
|
|
echo ""
|
|
|
|
# Check verify.txt exists
|
|
if [ -f "verify.txt" ]; then
|
|
echo "[PASS] verify.txt exists"
|
|
else
|
|
echo "[FAIL] verify.txt missing"
|
|
exit 1
|
|
fi
|
|
|
|
# Check verify.sha256 exists
|
|
if [ -f "verify.sha256" ]; then
|
|
echo "[PASS] verify.sha256 exists"
|
|
else
|
|
echo "[FAIL] verify.sha256 missing"
|
|
exit 1
|
|
fi
|
|
|
|
# Verify hash matches
|
|
if sha256sum -c verify.sha256 &>/dev/null; then
|
|
echo "[PASS] Hash verification passed"
|
|
else
|
|
echo "[FAIL] Hash verification failed"
|
|
exit 1
|
|
fi
|
|
|
|
echo ""
|
|
echo "=== Content ==="
|
|
cat verify.txt
|
|
echo ""
|
|
echo "=== Hash ==="
|
|
cat verify.sha256
|
|
|
|
echo ""
|
|
echo "ARTIFACT VERIFIED SUCCESSFULLY" |