Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Always run file with sh, no execute permission requirement

  • Loading branch information...
commit 546738e16420406b4d6d1530fde4bbbc69cc2b53 1 parent 86cab5e
Tim Oxley authored
Showing with 4 additions and 5 deletions.
  1. +2 −2 README.md
  2. +1 −2  examples/simple/webhook
  3. +1 −1  index.js
4 README.md
View
@@ -3,9 +3,9 @@ node-webhooks
## Easily Create Webhooks
-1. Create executable script called `webhook` in the directory you wish to
+1. Create a script called `webhook` in the directory you wish to
run it from.
-2. Run `webhooks` command in same directory as `webhook` executable to
+2. Run `webhooks` command in same directory as `webhook` script to
get the webhook key.
3. Boot webhooks with `webhooks start`
4. POST to your webhooks server using your webhook key, e.g.
3  examples/simple/webhook 100755 → 100644
View
@@ -1,3 +1,2 @@
#!/bin/sh
-touch it_worked
-date >> it_worked
+date > it_worked
2  index.js
View
@@ -72,4 +72,4 @@ module.exports.hashCwd = function(cwd) {
return encodeURIComponent(encrypt(cwd || process.cwd(), process.env.WH_SECRET || 'keyboard cat'))
}
-module.exports.command = './webhook'
+module.exports.command = '/usr/bin/env sh ./webhook'
Please sign in to comment.
Something went wrong with that request. Please try again.