Skip to content

Commit 69ab807

Browse files
authored
Merge pull request #11 from linuxdaemon/update/chezmoi-install-sh
Update chezmoi-install.sh
2 parents df041b7 + e2ab4cb commit 69ab807

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/chezmoi-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ hash_sha256_verify() {
316316
checksums="${2}"
317317
basename="${target##*/}"
318318

319-
want="$(grep "${basename}" "${checksums}" 2>/dev/null | tr '\t' ' ' | cut -d ' ' -f 1)"
319+
want="$(grep "${basename}\$" "${checksums}" 2>/dev/null | tr '\t' ' ' | cut -d ' ' -f 1)"
320320
if [ -z "${want}" ]; then
321321
log_err "hash_sha256_verify unable to find checksum for ${target} in ${checksums}"
322322
return 1

0 commit comments

Comments
 (0)