]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
fix: Correctly call sha256sum on macOS (#1549)
authorHenrique Ferreiro <hferreiro@igalia.com>
Mon, 6 Jan 2025 08:40:17 +0000 (09:40 +0100)
committerGitHub <noreply@github.com>
Mon, 6 Jan 2025 08:40:17 +0000 (09:40 +0100)
sha256sum requires explicitly using `-` as the input file on macOS.

misc/clang-format

index 6975159c1ca04d5ebfd2e946b99ba86a4377fe0e..6db806306bb854300386ee6499d6d64ad8c765b3 100755 (executable)
@@ -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