Skip to content

Commit

Permalink
[Fix] allow checksums to pass with a leading backslash
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Aug 6, 2023
1 parent 55075db commit 324b81a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1663,7 +1663,7 @@ nvm_compare_checksum() {
nvm_err "Computed checksum of '${FILE}' is empty." # missing in raspberry pi binary
nvm_err 'WARNING: Continuing *without checksum verification*'
return
elif [ "${COMPUTED_SUM}" != "${CHECKSUM}" ]; then
elif [ "${COMPUTED_SUM}" != "${CHECKSUM}" ] && [ "${COMPUTED_SUM}" != "\\${CHECKSUM}" ]; then
nvm_err "Checksums do not match: '${COMPUTED_SUM}' found, '${CHECKSUM}' expected."
return 1
fi
Expand Down

0 comments on commit 324b81a

Please sign in to comment.