Default looking for octicons in ~/github/octicons

This commit is contained in:
Kevin Sawicki 2013-08-07 10:59:45 -07:00
parent 32af574206
commit c6a914a6e1

View File

@ -10,10 +10,10 @@ fs = require 'fs'
YAML = require 'js-yaml'
scriptPath = process.argv[1]
pathToOcticons = process.argv[2]
pathToOcticons = process.argv[2] ? path.join(process.env.HOME, 'github', 'octicons')
atomDir = path.resolve(scriptPath, "../../..")
unless pathToOcticons
unless fs.existsSync(pathToOcticons)
console.error(usage)
process.exit(1)