We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents df041b7 + e2ab4cb commit 69ab807Copy full SHA for 69ab807
scripts/chezmoi-install.sh
@@ -316,7 +316,7 @@ hash_sha256_verify() {
316
checksums="${2}"
317
basename="${target##*/}"
318
319
- want="$(grep "${basename}" "${checksums}" 2>/dev/null | tr '\t' ' ' | cut -d ' ' -f 1)"
+ want="$(grep "${basename}\$" "${checksums}" 2>/dev/null | tr '\t' ' ' | cut -d ' ' -f 1)"
320
if [ -z "${want}" ]; then
321
log_err "hash_sha256_verify unable to find checksum for ${target} in ${checksums}"
322
return 1
0 commit comments