[Fix] allow checksums to pass with a leading backslash
See https://unix.stackexchange.com/a/555061/137489
parent
55075db96d
commit
324b81a722
2
nvm.sh
2
nvm.sh
|
@ -1663,7 +1663,7 @@ nvm_compare_checksum() {
|
||||||
nvm_err "Computed checksum of '${FILE}' is empty." # missing in raspberry pi binary
|
nvm_err "Computed checksum of '${FILE}' is empty." # missing in raspberry pi binary
|
||||||
nvm_err 'WARNING: Continuing *without checksum verification*'
|
nvm_err 'WARNING: Continuing *without checksum verification*'
|
||||||
return
|
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."
|
nvm_err "Checksums do not match: '${COMPUTED_SUM}' found, '${CHECKSUM}' expected."
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue