Use md5 -q for HashProgramOutput.sh, to show only the checksum.
Summary:
This option is supported on both BSDs and macOS, and ensures the command
also works if GNU coreutils are not installed.
Reviewers: ddunbar, jdoerfert, serge-sans-paille, tra
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D83411
diff --git a/HashProgramOutput.sh b/HashProgramOutput.sh
index c5ac268..56cce93 100755
--- a/HashProgramOutput.sh
+++ b/HashProgramOutput.sh
@@ -18,7 +18,7 @@
mv $1 $1.bak
if [ $is_md5sum = "0" ]; then
- $md5cmd < $1.bak > $1
+ $md5cmd -q < $1.bak > $1
else
$md5cmd < $1.bak | cut -d' ' -f 1 > $1
fi