mirror of https://github.com/mthenw/frontail.git
Support OpenBSD (#146)
parent
a99286fa0d
commit
75d31aafd6
|
@ -23,7 +23,12 @@ function Tail(path, opts) {
|
|||
this.emit('line', str);
|
||||
});
|
||||
} else {
|
||||
const tail = childProcess.spawn('tail', ['-n', options.buffer, '-F'].concat(path));
|
||||
let followOpt = '-F';
|
||||
if (process.platform === 'openbsd') {
|
||||
followOpt = '-f';
|
||||
}
|
||||
|
||||
const tail = childProcess.spawn('tail', ['-n', options.buffer, followOpt].concat(path));
|
||||
|
||||
tail.stderr.on('data', (data) => {
|
||||
// If there is any important error then display it in the console. Tail will keep running.
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -25,7 +25,7 @@
|
|||
"eslint-config-airbnb-base": "^13.1.0",
|
||||
"eslint-plugin-import": "^2.14.0",
|
||||
"jsdom": "^11.11.0",
|
||||
"mocha": "~2.3.2",
|
||||
"mocha": "^2.3.2",
|
||||
"pkg": "^4.3.3",
|
||||
"should": "~3.3.2",
|
||||
"sinon": "~1.7.3",
|
||||
|
|
Loading…
Reference in New Issue