Permalink
Browse files

Fixed a missing if statement

  • Loading branch information...
1 parent c37885b commit 169f3df60ba35fe3a8a20aa4965bbd43bdf7e5c9 @mikemurray committed Dec 11, 2011
Showing with 6 additions and 6 deletions.
  1. +6 −6 sew.coffee
View
@@ -12,11 +12,11 @@ class Worker
configFile: './config.json'
options:
- publicDir: './testfiles'
- jsPath: './js/mylibs'
- cssPath: './css/style.less'
- outputJs: './js/script.js'
- outputCss: './css/style.css'
+ public: './public'
+ jsPath: './app'
+ cssPath: './styles/style.less'
+ outputJs: './public/js/scripts.js'
+ outputCss: '.public/css/styles.css'
constructor: ->
@readConfig()
@@ -30,7 +30,7 @@ class Worker
# Actions
new: ->
- console.log (!fpath.existsSync @configFile), argv.force
+ if true and (!fpath.existsSync(@configFile) or argv.force)
util.log 'Creating config file'
fs.writeFileSync @configFile, JSON.stringify(@options, null, 2)
else

0 comments on commit 169f3df

Please sign in to comment.