We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 92f4275 + c462f6e commit f3e4dd6Copy full SHA for f3e4dd6
install.sh
@@ -54,7 +54,9 @@ if ! curl -fsSLO "${SHA256_URL}"; then
54
fi
55
56
echo "Verifying checksum..." >&2
57
-sha256sum -c "${FILE}.sha256" || { echo "Error: Checksum verification failed" >&2; exit 1; }
+# Normalize checksum file (remove CRLF) and ignore empty/whitespace-only lines
58
+sed 's/\r$//' "${FILE}.sha256" | grep -E -v '^[[:space:]]*$' | sha256sum -c - \
59
+ || { echo "Error: Checksum verification failed" >&2; exit 1; }
60
61
echo "Extracting archive..." >&2
62
tar -xJf "$FILE"
0 commit comments