fix: avoid using internal subroutine

This commit is contained in:
2026-07-02 06:35:39 +02:00
parent 681f211b24
commit 3c42c8ee14
+2 -2
View File
@@ -1,7 +1,7 @@
# Maintainer: Oscar Wallberg <oscar.wallberg@outlook.com> # Maintainer: Oscar Wallberg <oscar.wallberg@outlook.com>
pkgname=claude-code pkgname=claude-code
pkgver=2.1.196 pkgver=2.1.196
pkgrel=1 pkgrel=2
pkgdesc="Use Claude, Anthropic's AI assistant, right from your terminal" pkgdesc="Use Claude, Anthropic's AI assistant, right from your terminal"
arch=('x86_64') arch=('x86_64')
url="https://claude.ai/code" url="https://claude.ai/code"
@@ -22,7 +22,7 @@ check() {
local expected="$(jq -r '.platforms."linux-x64".checksum' "${pkgver}-manifest.json")" local expected="$(jq -r '.platforms."linux-x64".checksum' "${pkgver}-manifest.json")"
local actual="$(sha256sum "${pkgver}-claude" | cut -d' ' -f1)" local actual="$(sha256sum "${pkgver}-claude" | cut -d' ' -f1)"
if [[ "$actual" != "$expected" ]]; then if [[ "$actual" != "$expected" ]]; then
error "Binary checksum mismatch: got $actual, manifest has $expected" echo "Binary checksum mismatch: got $actual, manifest has $expected" >&2
return 1 return 1
fi fi
} }