update yarrr
This commit is contained in:
parent
3386989594
commit
5ffc254d9d
1 changed files with 2 additions and 2 deletions
4
yarrr.js
4
yarrr.js
|
|
@ -8,12 +8,12 @@ var fs = require('fs')
|
||||||
, notify = require('growl').notify
|
, notify = require('growl').notify
|
||||||
, Downloads = join(process.env.HOME, 'Downloads')
|
, Downloads = join(process.env.HOME, 'Downloads')
|
||||||
, created = JSON.parse(process.env.WATCH_CREATED)
|
, created = JSON.parse(process.env.WATCH_CREATED)
|
||||||
, torrents = created.grep(/.torrent$/i)
|
, torrents = created.grep(/\.torrent$/i)
|
||||||
, skipped = []
|
, skipped = []
|
||||||
, _log = []
|
, _log = []
|
||||||
, log = function(s) { s = '>>> ' + s; _log.push(s); console.log(s) }
|
, log = function(s) { s = '>>> ' + s; _log.push(s); console.log(s) }
|
||||||
, err = function(s) { s = '!!! ' + s; _log.push(s); console.error(s) }
|
, err = function(s) { s = '!!! ' + s; _log.push(s); console.error(s) }
|
||||||
, writeLog = function() { fs.writeFileSync('/Users/sjs/bin/yarrr.log', _log.join('\n')) }
|
, writeLog = function() { fs.writeFileSync('/Users/sjs/log/yarrr.log', _log.join('\n')) }
|
||||||
|
|
||||||
process.on('uncaughtException', function(e) {
|
process.on('uncaughtException', function(e) {
|
||||||
err('error: ' + e)
|
err('error: ' + e)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue