Skip to content

Commit

Permalink
Merge pull request #491 from roots/fix-install-script
Browse files Browse the repository at this point in the history
Fix install script
  • Loading branch information
swalkinshaw authored Nov 13, 2024
2 parents 7eb3267 + f7dc27d commit 8401efc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/get
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ hash_sha256_verify() {
return 1
fi
BASENAME=${TARGET##*/}
want=$(grep "${BASENAME}" "${checksums}" 2>/dev/null | tr '\t' ' ' | cut -d ' ' -f 1)
want=$(grep -m1 "${BASENAME}$" "${checksums}" 2>/dev/null | tr '\t' ' ' | cut -d ' ' -f 1)
if [ -z "$want" ]; then
log_err "hash_sha256_verify unable to find checksum for '${TARGET}' in '${checksums}'"
return 1
Expand Down

0 comments on commit 8401efc

Please sign in to comment.