Commit 695c3f586ebab7f4567faf8f93c1c8f88dd93540
Install git-remote-ssb binary
Charles Lehner committed on 2/28/2016, 2:12:47 AMParent: 0909cc35a2eeda6e6e9daf955591007faa51d900
Files changed
bin.js | changed |
package.json | changed |
bin.js | ||
---|---|---|
@@ -2,8 +2,16 @@ | ||
2 | 2 … | ':' //; exec "$(command -v nodejs || command -v node)" "$0" "$@" |
3 | 3 … | // http://unix.stackexchange.com/questions/65235/universal-node-js-shebang |
4 | 4 … | // vi: ft=javascript |
5 | 5 … | |
6 … | +var path = require('path') | |
7 … | + | |
8 … | +var progname = path.basename(process.argv[1]) | |
9 … | +if (progname == 'git-remote-ssb') { | |
10 … | + require('git-remote-ssb/git-remote-ssb') | |
11 … | + return | |
12 … | +} | |
13 … | + | |
6 | 14 … | var spawn = require('child_process').spawn |
7 | 15 … | var ssbGit = require('ssb-git-repo') |
8 | 16 … | var pull = require('pull-stream') |
9 | 17 … |
package.json | ||
---|---|---|
@@ -1,9 +1,12 @@ | ||
1 | 1 … | { |
2 | 2 … | "name": "git-ssb", |
3 | 3 … | "version": "1.0.3", |
4 | 4 … | "description": "git hosting on secure-scuttlebutt (ssb)", |
5 | - "bin": "bin.js", | |
5 … | + "bin": { | |
6 … | + "git-ssb": "bin.js", | |
7 … | + "git-remote-ssb": "bin.js" | |
8 … | + }, | |
6 | 9 … | "dependencies": { |
7 | 10 … | "git-remote-ssb": "^1.0.0", |
8 | 11 … | "git-ssb-web": "^1.0.0", |
9 | 12 … | "pull-cat": "^1.1.8", |
Built with git-ssb-web