You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ma...@apache.org on 2023/02/04 00:17:19 UTC
[trafficserver] branch master updated: Try shasum with algo option if sha256sum is unavailable (#9380)
This is an automated email from the ASF dual-hosted git repository.
maskit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 75e57c0f0e Try shasum with algo option if sha256sum is unavailable (#9380)
75e57c0f0e is described below
commit 75e57c0f0e21f43e5d64109770134d5dba85e28b
Author: Masakazu Kitajo <ma...@apache.org>
AuthorDate: Fri Feb 3 17:17:13 2023 -0700
Try shasum with algo option if sha256sum is unavailable (#9380)
---
tools/clang-format.sh | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/tools/clang-format.sh b/tools/clang-format.sh
index 10716b6cd6..0c93d4548a 100755
--- a/tools/clang-format.sh
+++ b/tools/clang-format.sh
@@ -46,7 +46,11 @@ function main() {
CURL=${CURL:-curl}
# Default to sha256sum, but honor the env variable just in case
- SHASUM=${SHASUM:-sha256sum}
+ if [ $(which sha256sum) ] ; then
+ SHASUM=${SHASUM:-sha256sum}
+ else
+ SHASUM=${SHASUM:-shasum -a 256}
+ fi
ARCHIVE=$ROOT/$(basename ${URL})