Skip to content

Commit a8b1f5d

Browse files
committed
Use openssl to verify sha256 checksum
sha256sum isn't available om macos by default (perhaps on other BSD systems as well?). So us openssl.
1 parent c41e5b3 commit a8b1f5d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ sha256=$( perl -nle 'print $& if m{(?<=:sha256 ")[^"]*}g' <<< "$meta" )
2626
echo "Downloading quicklisp client..."
2727
curl -s "$url" -o "$QL_TOPDIR"/quicklisp.tar
2828

29-
if [ "$sha256" != "$(sha256sum "$QL_TOPDIR"/quicklisp.tar | cut -d' ' -f 1)" ]
29+
if [ "$sha256" != "$(openssl dgst -sha256 "$QL_TOPDIR"/quicklisp.tar | cut -d' ' -f 2)" ]
3030
then
3131
echo "sha mismatch" >&2
3232
exit 1

0 commit comments

Comments
 (0)