mirror of
https://github.com/atlanticbiomedical/biomedjs.git
synced 2025-07-02 00:47:26 -04:00
15 lines
335 B
JavaScript
Executable File
15 lines
335 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
var path = require("path")
|
|
, fs = require("fs")
|
|
, args = process.argv.slice(1)
|
|
|
|
var arg, base;
|
|
do arg = args.shift();
|
|
while ( fs.realpathSync(arg) !== __filename
|
|
&& (base = path.basename(arg)) !== "node-supervisor"
|
|
&& base !== "supervisor"
|
|
&& base !== "supervisor.js"
|
|
)
|
|
|
|
require("./supervisor").run(args)
|