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

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


The following commit(s) were added to refs/heads/master by this push:
     new ff1c016  Add missing npm install. (#218)
ff1c016 is described below

commit ff1c01664bbf952dda5ef3ca4c367ca0d4c247d1
Author: rodric rabbah <[email protected]>
AuthorDate: Mon Jun 1 11:32:29 2020 -0400

    Add missing npm install. (#218)
---
 installCatalog.sh | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/installCatalog.sh b/installCatalog.sh
index 73ef5e0..97f8b32 100755
--- a/installCatalog.sh
+++ b/installCatalog.sh
@@ -93,6 +93,8 @@ if [ -e alarmFeed.zip ]; then
 fi
 
 cp -f alarmFeed_package.json package.json
+npm install
+rm -rf alarmFeed.zip
 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" \
@@ -135,11 +137,7 @@ $WSK_CLI $COMMAND
 # make alarmWebAction.zip
 cp -f alarmWeb_package.json package.json
 npm install
-
-if [ -e alarmWebAction.zip ]; then
-    rm -rf alarmWebAction.zip
-fi
-
+rm -rf alarmWebAction.zip
 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" \

Reply via email to