From: Henrique Ferreiro Date: Mon, 6 Jan 2025 08:40:17 +0000 (+0100) Subject: fix: Correctly call sha256sum on macOS (#1549) X-Git-Tag: v4.11~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5e7e2002fec2ecbb9c8b5e3827cfe86b26b4eecd;p=thirdparty%2Fccache.git fix: Correctly call sha256sum on macOS (#1549) sha256sum requires explicitly using `-` as the input file on macOS. --- 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