Skip to content

Commit a0b2476

Browse files
committed
fix: make install script exit on missing checksum tool
Previously the installer would skip verification with a warning if neither sha256sum nor shasum was available. Now it exits with an error, preventing installation of unverified binaries. Closes #73
1 parent f61e7ba commit a0b2476

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ if command -v sha256sum > /dev/null 2>&1; then
6666
elif command -v shasum > /dev/null 2>&1; then
6767
shasum -a 256 -c "${ARTIFACT}.sha256"
6868
else
69-
echo "Warning: No checksum tool found, skipping verification" >&2
69+
echo "Error: No checksum tool found (sha256sum or shasum required)" >&2
70+
exit 1
7071
fi
7172
cd - > /dev/null
7273

0 commit comments

Comments
 (0)