From d6d621c68b370e6135374b6c6ab7b3689692248e Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sun, 6 Aug 2023 14:51:48 +1200 Subject: [PATCH] [Fix] allow checksums to pass with a leading backslash See https://unix.stackexchange.com/a/555061/137489 --- nvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvm.sh b/nvm.sh index daa8207c2d4..c789b02bd90 100644 --- a/nvm.sh +++ b/nvm.sh @@ -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