From 5e7e2002fec2ecbb9c8b5e3827cfe86b26b4eecd Mon Sep 17 00:00:00 2001 From: Henrique Ferreiro Date: Mon, 6 Jan 2025 09:40:17 +0100 Subject: [PATCH] fix: Correctly call sha256sum on macOS (#1549) sha256sum requires explicitly using `-` as the input file on macOS. --- misc/clang-format | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/clang-format b/misc/clang-format index 6975159c..6db80630 100755 --- a/misc/clang-format +++ b/misc/clang-format @@ -54,7 +54,7 @@ if [ ! -x "$clang_format_exe" ]; then if ! command -v sha256sum >/dev/null; then echo "Warning: sha256sum not found, not verifying clang-format integrity" >&2 - elif ! echo "$checksum $clang_format_exe.tmp" | sha256sum --status -c; then + elif ! echo "$checksum $clang_format_exe.tmp" | sha256sum --status -c -; then echo "Error: Bad checksum of downloaded clang-format" >&2 exit 1 fi -- 2.47.2