This is an automated email from the ASF dual-hosted git repository.

jongyoul pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/zeppelin.git


The following commit(s) were added to refs/heads/master by this push:
     new 7f2be73ca7 [ZEPPELIN-6007] Enhance release scripts for tar shasum 
commands detection (#4747)
7f2be73ca7 is described below

commit 7f2be73ca70bbc720f707f361bfb2816fb8d9a17
Author: Cheng Pan <pan3...@gmail.com>
AuthorDate: Mon Apr 1 18:19:43 2024 +0800

    [ZEPPELIN-6007] Enhance release scripts for tar shasum commands detection 
(#4747)
    
    * [ZEPPELIN-6007] Enhance release scripts for tar shasum commands detection
    
    * fix
    
    * nit
    
    * indent
---
 dev/common_release.sh | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/dev/common_release.sh b/dev/common_release.sh
index fda1700398..2875e5784b 100644
--- a/dev/common_release.sh
+++ b/dev/common_release.sh
@@ -20,11 +20,17 @@
 # common fucntions
 
 if [[ -z "${TAR}" ]]; then
-  TAR="/usr/bin/tar"
+  TAR="tar"
+  if [ "$(uname -s)" = "Darwin" ]; then
+    TAR="tar --no-mac-metadata --no-xattrs --no-fflags"
+  fi
 fi
 
 if [[ -z "${SHASUM}" ]]; then
-  SHASUM="/usr/bin/shasum"
+  SHASUM="sha512sum"
+  if [ "$(uname -s)" = "Darwin" ]; then
+    SHASUM="shasum -a 512"
+  fi
 fi
 
 if [[ -z "${WORKING_DIR}" ]]; then

Reply via email to