Skip to content

Commit

Permalink
remove-uppercase
Browse files Browse the repository at this point in the history
  • Loading branch information
ManikantaSanjay committed Feb 3, 2025
1 parent c1363ee commit 3e14da9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/update_homebrew.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ jobs:
}
# Capture SHAs with newline trimming and validation
SHA256_LINUX=$(calculate_and_verify_sha "https://storage.googleapis.com/fireworks-public/firectl/stable/linux-amd64.gz")
SHA256_DARWIN_AMD64=$(calculate_and_verify_sha "https://storage.googleapis.com/fireworks-public/firectl/stable/darwin-amd64.gz")
SHA256_DARWIN_ARM64=$(calculate_and_verify_sha "https://storage.googleapis.com/fireworks-public/firectl/stable/darwin-arm64.gz")
SHA256_LINUX=$(calculate_and_verify_sha "https://storage.googleapis.com/fireworks-public/firectl/stable/linux-amd64.gz" | tr -d '[:space:]')
SHA256_DARWIN_AMD64=$(calculate_and_verify_sha "https://storage.googleapis.com/fireworks-public/firectl/stable/darwin-amd64.gz" | tr -d '[:space:]')
SHA256_DARWIN_ARM64=$(calculate_and_verify_sha "https://storage.googleapis.com/fireworks-public/firectl/stable/darwin-arm64.gz" | tr -d '[:space:]')
# SHA validation function
validate_sha() {
local sha=$1
if [[ ! "$sha" =~ ^[a-fA-F0-9]{64}$ ]]; then
if [[ ! "$sha" =~ ^[a-f0-9]{64}$ ]]; then
echo "❌ Invalid SHA format: $sha"
exit 1
fi
Expand Down

0 comments on commit 3e14da9

Please sign in to comment.