Files: 284fb7714a71f709783f4de5a95674fdd00ca651 / bin.js
490 bytesRaw
1 | |
2 | ':' //; exec "$(command -v node || command -v nodejs)" "$0" "$@" |
3 | // http://unix.stackexchange.com/questions/65235/universal-node-js-shebang |
4 | |
5 | if (/\/git-remote-ssb$/.test(process.argv[1])) { |
6 | require('git-remote-ssb/git-remote-ssb') |
7 | |
8 | } else { |
9 | var u = require('./lib/util') |
10 | var config = require('ssb-config/inject')(u.getAppName()) |
11 | var fn = require('./lib') |
12 | try { |
13 | fn(config) |
14 | } catch (e) { |
15 | console.error(e instanceof Error ? e.stack : e) |
16 | process.exit(1) |
17 | } |
18 | } |
19 |
Built with git-ssb-web