You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/06/14 20:15:39 UTC

[GitHub] pritidesai closed pull request #188: Fix the issue in Travis build of master branch

pritidesai closed pull request #188: Fix the issue in Travis build of master branch
URL: https://github.com/apache/incubator-openwhisk-release/pull/188
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

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


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services