mirror of
https://github.com/viq/NewsBlur.git
synced 2025-08-05 16:49:45 +00:00
12 lines
313 B
JavaScript
Executable file
12 lines
313 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)).match(/^supervisor$|^supervisor.js$|^node-supervisor$/)
|
|
)
|
|
|
|
require("./supervisor").run(args)
|