Permalink
Browse files

recursively readlink

  • Loading branch information...
1 parent 7de1b8d commit bc0bd39dbf1572d24aed293145ebb23b4a88d798 @crcn crcn committed May 1, 2013
Showing with 2 additions and 4 deletions.
  1. +1 −2 lib/build.js
  2. +1 −2 src/build.coffee
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -85,8 +85,7 @@ module.exports = class
_fixDirs: (base, dirs) ->
dirs.map((d) ->
pt = base + "/" + d
- stat = fs.lstatSync(pt)
- if stat.isSymbolicLink()
+ while (stat = fs.lstatSync(pt)).isSymbolicLink()
pt = fs.readlinkSync pt
pt
).filter (d) ->

0 comments on commit bc0bd39

Please sign in to comment.