Skip to content

Commit

Permalink
CoffeeScript 1.2.1 compatability.
Browse files Browse the repository at this point in the history
  • Loading branch information
airhorns committed Apr 10, 2012
1 parent 60e63a9 commit aafd8b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/muffin.coffee
Expand Up @@ -90,7 +90,7 @@ notify = (source, origMessage, error = false) ->
# Recursively creates directories.
# Borrowed from Bruno Pedro
# https://github.com/bpedro/node-fs
mkdir_p = (filePath, mode = 0777, callback, position = 0) ->
mkdir_p = (filePath, mode = 0o777, callback, position = 0) ->
parts = path.normalize(filePath).split("/")
if parts[0] == ''
parts.shift()
Expand Down Expand Up @@ -143,7 +143,7 @@ readFile = (file, options = {}) ->
deferred.promise

writeFile = (file, data, options = {}) ->
mode = options.mode || 0644
mode = options.mode || 0o644

# Write the file to the git index if we're using the stage as the files being caked,
# or otherwise use `q-fs` to write while returning a promise.
Expand All @@ -166,7 +166,7 @@ writeFile = (file, data, options = {}) ->
# Write the file, and then chmod the file using `q` promises.
write = q.defer()

mkdir_p path.dirname(file), 0755, (err) ->
mkdir_p path.dirname(file), 0o755, (err) ->
return write.reject(err) if err
ofs.writeFile file, data, "UTF-8", (err) ->
return write.reject(err) if err
Expand Down

0 comments on commit aafd8b0

Please sign in to comment.