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

pdesai pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/incubator-openwhisk-release.git


The following commit(s) were added to refs/heads/master by this push:
     new 97f2074  Fix the issue in Travis build of master branch (#188)
97f2074 is described below

commit 97f20749179bf97bd6b5d6a8b66df272c259c977
Author: Vincent <[email protected]>
AuthorDate: Thu Jun 14 16:15:37 2018 -0400

    Fix the issue in Travis build of master branch (#188)
    
    In bash scripts, when searching for files with certain suffixes under
    a directory, we need to exclude the ones with *, since they are the
    expression not the files.
---
 tools/sign_artifacts.sh | 22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)

diff --git a/tools/sign_artifacts.sh b/tools/sign_artifacts.sh
index e5cca17..785d045 100755
--- a/tools/sign_artifacts.sh
+++ b/tools/sign_artifacts.sh
@@ -36,16 +36,18 @@ fi
 
 cd $CURRENT_VERSION_DIR
 echo "Sign the artifacts with the private key."
-for artifact in *.tar.gz *.zip *.tgz; do
-    gpg --print-md MD5 ${artifact} > ${artifact}.md5
-    gpg --print-md SHA512 ${artifact} > ${artifact}.sha512
-
-    if [ $sysOS == "Darwin" ];then
-        # The option --passphrase-fd does not work on Mac.
-        `gpg --yes --armor --output ${artifact}.asc --detach-sig ${artifact}`
-    elif [ $sysOS == "Linux" ];then
-        `echo $passphrase | gpg --passphrase-fd 0 --yes --armor --output 
${artifact}.asc --detach-sig ${artifact}`
+for artifact in *.tar.gz *.zip; do
+    if [ "${artifact}" != "*.tar.gz" ] && [ "${artifact}" != "*.zip"  ] ; then
+        gpg --print-md MD5 ${artifact} > ${artifact}.md5
+        gpg --print-md SHA512 ${artifact} > ${artifact}.sha512
+
+        if [ $sysOS == "Darwin" ];then
+            # The option --passphrase-fd does not work on Mac.
+            `gpg --yes --armor --output ${artifact}.asc --detach-sig 
${artifact}`
+        elif [ $sysOS == "Linux" ];then
+            `echo $passphrase | gpg --passphrase-fd 0 --yes --armor --output 
${artifact}.asc --detach-sig ${artifact}`
+        fi
     fi
 done
 
-ls
+#ls

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to