Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jul 18, 2024. It is now read-only.

Commit b6b9ffc

Browse files
committed
1) add ‘usage’ to deploy.sh 2) change base 64 -D to base64 —decode for mac/linux compatibility and 3) fix package.json so that npm install will work
1 parent 5a317f6 commit b6b9ffc

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

‎actions/mhpost/package.json‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
{
22
"name": "mypost",
3-
"version": "0.1",
3+
"version": "0.1.0",
44
"description": "Action posting messages to a Message Hub topic",
55
"author": "IBM",
66
"license": "Apache-2.0",
77
"dependencies": {
8-
"message-hub-rest": "file:./node_modules/message-hub-rest"
9-
},
10-
"engines": {
11-
"node": "6.9"
8+
"message-hub-rest": "1.2.0"
129
},
1310
"main": "index.js"
1411
}

‎deploy.sh‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
# Load configuration variables
1919
source local.env
2020

21+
function usage() {
22+
echo -e "Usage: 0ドル [--install,--uninstall,--env]"
23+
}
24+
2125
function install() {
2226
echo -e "Installing OpenWhisk actions, triggers, and rules for openwhisk-data-processing-message-hub..."
2327

‎kafka_consume.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ decode_response() {
3131
local ARG=1ドル
3232
local ENCODED=${1##*,\"value\":\"}
3333
local ENCODED=${ENCODED%%\",\"partition\":*}
34-
DECODED=`echo $ENCODED | base64 -D`
34+
DECODED=`echo $ENCODED | base64 --decode`
3535
fi
3636
}
3737

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /