fix install again
This commit is contained in:
+3
-1
@@ -26,7 +26,9 @@ if [[ ! "$checksum" =~ ^[a-fA-F0-9]{64}$ ]]; then
|
||||
printf 'Invalid release checksum\n' >&2
|
||||
exit 1
|
||||
fi
|
||||
if ! (cd "$install" && printf '%s stanp-opencode.tgz\n' "$checksum" | sha256sum --check --status); then
|
||||
hash_output=$(sha256sum "$install/stanp-opencode.tgz")
|
||||
read -r actual _ <<< "$hash_output"
|
||||
if [[ ! "$actual" =~ ^[a-fA-F0-9]{64}$ || "$actual" != "$checksum" ]]; then
|
||||
printf 'Release checksum mismatch; installation unchanged\n' >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user