git ssb

39+

cel / git-ssb



Tree: ce32700bb99534de84bce95069bc5daaff7f3d9d

Files: ce32700bb99534de84bce95069bc5daaff7f3d9d / bin.js

490 bytesRaw
1#!/bin/sh
2':' //; exec "$(command -v node || command -v nodejs)" "$0" "$@"
3// http://unix.stackexchange.com/questions/65235/universal-node-js-shebang
4
5if (/\/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