Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

fix(install): support older awk checksum parsing (#28784)

Felipe Couryf22d15b679a1
diff --git a/scripts/install/install.sh b/scripts/install/install.sh
index 23980b0c5e..7513efc429 100755
--- a/scripts/install/install.sh
+++ b/scripts/install/install.sh
@@ -213,7 +213,7 @@ package_archive_digest() {
manifest_path="$2"
digest="$(awk -v asset="$asset" '
- $2 == asset && $1 ~ /^[0-9a-fA-F]{64}$/ {
+ $2 == asset && length($1) == 64 && $1 !~ /[^0-9a-fA-F]/ {
print tolower($1)
found = 1
exit