You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by ja...@apache.org on 2019/05/03 13:27:20 UTC

[incubator-openwhisk-package-alarms] branch master updated: Add --quiet/-q to recursive zip commands (#188)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new dfb94d1  Add --quiet/-q to recursive zip commands (#188)
dfb94d1 is described below

commit dfb94d1d80c3ddbc4bd894ca883cddde8ad90804
Author: Anthony Amanse <jo...@obf.ateneo.edu>
AuthorDate: Fri May 3 06:27:15 2019 -0700

    Add --quiet/-q to recursive zip commands (#188)
    
    This commit makes the zip command not output lines of all the
    files it adds in the compressed file.
    The lines can reach to thousand of lines without the -q option.
    This makes it easy to scroll through the progress of the script.
---
 installCatalog.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/installCatalog.sh b/installCatalog.sh
index c2882a0..924277f 100755
--- a/installCatalog.sh
+++ b/installCatalog.sh
@@ -80,7 +80,7 @@ if [ -e alarmFeed.zip ]; then
 fi
 
 cp -f alarmFeed_package.json package.json
-zip -r alarmFeed.zip lib package.json alarm.js
+zip -r alarmFeed.zip lib package.json alarm.js -q
 
 $WSK_CLI -i --apihost "$EDGEHOST" action update --kind "$ACTION_RUNTIME_VERSION" --auth "$AUTH" alarms/alarm "$PACKAGE_HOME/action/alarmFeed.zip" \
      -a description 'Fire trigger when alarm occurs' \
@@ -122,7 +122,7 @@ if [ -e alarmWebAction.zip ]; then
     rm -rf alarmWebAction.zip
 fi
 
-zip -r alarmWebAction.zip lib package.json alarmWebAction.js node_modules
+zip -r alarmWebAction.zip lib package.json alarmWebAction.js node_modules -q
 
 $WSK_CLI -i --apihost "$EDGEHOST" action update --kind "$ACTION_RUNTIME_VERSION" --auth "$AUTH" alarmsWeb/alarmWebAction "$PACKAGE_HOME/action/alarmWebAction.zip" \
     -a description 'Create/Delete a trigger in alarms provider Database' \